/* BFLIX 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(219, 14, 82, .14);
  color: #db0e52;
  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: #db0e52;
  box-shadow: 0 0 0 3px rgba(219, 14, 82, .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: #db0e52;
  box-shadow: 0 0 0 3px rgba(219, 14, 82, .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(219, 14, 82, .35);
  border-radius: 9px;
  background: rgba(219, 14, 82, .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(219, 14, 82, .9);
}

.m2w-filter-heading p {
  margin: 0 0 4px;
  color: #db0e52;
  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: #db0e52;
  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: #db0e52;
}

.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(219, 14, 82, .55);
  background: #fff0f2;
  box-shadow: 0 0 0 3px rgba(219, 14, 82, .08);
}

.m2w-filter-type-grid input:focus-visible + span {
  outline: 3px solid rgba(219, 14, 82, .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: #db0e52;
  box-shadow: 0 0 0 3px rgba(219, 14, 82, .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: #db0e52;
  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 #db0e52;
  background: linear-gradient(145deg, #ad2637, #821421);
  color: #fff !important;
  box-shadow: 0 10px 24px -16px rgba(219, 14, 82, .9);
}

.m2w-filter-submit:hover,
.m2w-filter-edit:hover {
  border-color: #a80a40;
  background: #a80a40;
  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: #db0e52;
  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: #db0e52;
  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: #db0e52;
  background: #db0e52;
  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: #db0e52;
}

#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;
  }
}

/* Native select popups can ignore the dark select background. Keep option text visible. */
.m2w-report-select-wrap select { background:#0a0b10 !important; color:#f1f1f4 !important; }
.m2w-report-select-wrap select option { background:#fff !important; color:#111827 !important; }

/* BFLIX multi-choice catalog filters */
.hdt-filter-modal .modal-dialog { width:calc(100% - 28px); max-width:900px; margin:28px auto; }
.hdt-filter-modal .modal-content { overflow:hidden; border:0; border-radius:16px; background:#fff; color:#24344d; box-shadow:0 25px 70px rgba(20,65,132,.22); }
.hdt-filter-head { display:flex; align-items:flex-start; justify-content:space-between; gap:22px; padding:22px 24px 18px; border-bottom:1px solid #e3eaf3; background:linear-gradient(135deg,#faf9ff,#f2f0ff); }
.hdt-filter-kicker { display:inline-flex; align-items:center; gap:7px; color:#a80a40; font-size:11px; font-weight:800; letter-spacing:.05em; text-transform:uppercase; }
.hdt-filter-head h2 { margin:6px 0 0; color:#221d49; font-size:23px; font-weight:800; line-height:1.2; }
.hdt-filter-head p { margin:6px 0 0; color:#817b9c; font-size:12px; }
.hdt-filter-close { display:inline-flex; width:36px; height:36px; flex:0 0 36px; align-items:center; justify-content:center; border:0; border-radius:10px; background:#fff; color:#70839d; box-shadow:0 4px 14px rgba(20,65,132,.08); cursor:pointer; }
.hdt-filter-close:hover { color:#a80a40; }
.hdt-filter-body { padding:20px 24px 22px; }
.hdt-filter-search { display:block; margin:0 0 18px; }
.hdt-filter-search>span,.hdt-filter-select-row label>span { display:block; margin-bottom:7px; color:#425570; font-size:11px; font-weight:800; }
.hdt-filter-search>div { position:relative; }
.hdt-filter-search i { position:absolute; left:13px; top:50%; color:#9690ac; transform:translateY(-50%); }
.hdt-filter-search input { width:100%; height:44px; margin:0 !important; padding:0 13px 0 38px !important; border:1px solid #e3e0f1 !important; border-radius:10px !important; background:#fbfdff !important; color:#312d57 !important; box-shadow:none !important; }
.hdt-filter-search input:focus { border-color:#db0e52 !important; box-shadow:0 0 0 3px rgba(219,14,82,.10) !important; }
.hdt-filter-section { min-width:0; }
.hdt-filter-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:9px; }
.hdt-filter-section-title strong { color:#221d49; font-size:12px; }
.hdt-filter-section-title span { color:#9690a8; font-size:9px; }
.hdt-filter-pills { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:19px; }
.hdt-filter-pill { margin:0; cursor:pointer; }
.hdt-filter-pill input,.hdt-filter-options input { position:absolute; opacity:0; pointer-events:none; }
.hdt-filter-pill span { display:inline-flex; min-height:36px; align-items:center; gap:7px; padding:7px 12px; border:1px solid #e3e0f1; border-radius:9px; background:#fbfaff; color:#716b8d; font-size:11px; font-weight:700; }
.hdt-filter-pill span i { display:none; }
.hdt-filter-pill input:checked+span { border-color:#c8c3ff; background:#eeecff; color:#a80a40; }
.hdt-filter-pill input:checked+span i { display:inline-block; }
.hdt-filter-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
.hdt-filter-grid .hdt-filter-section { padding:14px; border:1px solid #e7e4f5; border-radius:12px; background:#fbfdff; }
.hdt-filter-options { display:grid; grid-template-columns:1fr; gap:5px; max-height:195px; overflow:auto; padding-right:4px; scrollbar-width:thin; }
.hdt-filter-options label { position:relative; margin:0; cursor:pointer; }
.hdt-filter-options label span { display:block; padding:7px 9px; border:1px solid transparent; border-radius:7px; color:#756f91; font-size:10px; line-height:1.2; }
.hdt-filter-options label:hover span { background:#f0f5fb; color:#221d49; }
.hdt-filter-options input:checked+span { border-color:#d3cfff; background:#eeecff; color:#a80a40; font-weight:800; }
.hdt-filter-years { grid-template-columns:repeat(3,1fr); }
.hdt-filter-years label span { text-align:center; }
.hdt-filter-select-row { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; margin-top:17px; }
.hdt-filter-select-row label { margin:0; }
.hdt-filter-select-row select { width:100%; height:42px; margin:0 !important; padding:0 10px !important; border:1px solid #e3e0f1 !important; border-radius:9px !important; background:#fff !important; color:#221d49 !important; box-shadow:none !important; }
.hdt-filter-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 24px; border-top:1px solid #e3eaf3; background:#fbfaff; }
.hdt-filter-reset,.hdt-filter-submit { display:inline-flex; min-height:39px; align-items:center; justify-content:center; gap:7px; padding:8px 13px; border-radius:9px; font-size:11px; font-weight:800; text-decoration:none !important; }
.hdt-filter-reset { border:1px solid #d8e3f0; background:#fff; color:#77718d !important; }
.hdt-filter-submit { border:0; background:linear-gradient(135deg,#db0e52,#a80a40); color:#fff; cursor:pointer; }

.hdt-filter-results-page { padding-top:18px; padding-bottom:45px; }
.hdt-filter-results-header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:15px; padding:18px 20px; border:1px solid #e0e8f2; border-radius:12px; background:#fff; box-shadow:0 8px 24px rgba(20,65,132,.05); }
.hdt-filter-results-kicker { display:inline-flex; align-items:center; gap:6px; color:#db0e52; font-size:10px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.hdt-filter-results-header h1 { margin:4px 0 0; color:#221d49; font-size:22px; font-weight:800; }
.hdt-filter-results-header p { margin:4px 0 0; color:#908aa4; font-size:11px; }
.hdt-filter-edit { display:inline-flex; align-items:center; gap:7px; border:0; border-radius:8px; background:#db0e52; color:#fff !important; font-size:11px; font-weight:800; }
.hdt-filter-active-list { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:0 0 18px; }
.hdt-filter-active-list span,.hdt-filter-active-list a { display:inline-flex; padding:6px 9px; border-radius:999px; background:#eeecff; color:#a80a40 !important; font-size:10px; font-weight:750; text-decoration:none !important; }
.hdt-filter-active-list a { background:#f1f3f6; color:#68798e !important; }
.hdt-filter-empty { padding:55px 20px; border:1px dashed #d4e0ed; border-radius:13px; background:#fff; text-align:center; }
.hdt-filter-empty>span { display:inline-flex; width:48px; height:48px; align-items:center; justify-content:center; border-radius:14px; background:#eeecff; color:#db0e52; font-size:18px; }
.hdt-filter-empty h2 { margin:12px 0 4px; color:#221d49; font-size:18px; }
.hdt-filter-empty p { margin:0 0 14px; color:#8d87a1; font-size:11px; }
.hdt-filter-pagination { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:25px; }
.hdt-filter-pagination a,.hdt-filter-pagination span { display:inline-flex; min-width:36px; height:36px; align-items:center; justify-content:center; padding:0 9px; border:1px solid #dce5ef; border-radius:8px; background:#fff; color:#696482 !important; font-size:11px; font-weight:800; text-decoration:none !important; }
.hdt-filter-pagination a.active { border-color:#db0e52; background:#db0e52; color:#fff !important; }
.hdt-filter-pagination span { border-color:transparent; background:transparent; }

@media(max-width:767px){
  .hdt-filter-modal .modal-dialog{width:calc(100% - 16px);margin:8px auto}.hdt-filter-head{padding:18px 16px 15px}.hdt-filter-head h2{font-size:19px}.hdt-filter-body{padding:16px}.hdt-filter-grid{grid-template-columns:1fr}.hdt-filter-options{max-height:160px}.hdt-filter-select-row{grid-template-columns:1fr}.hdt-filter-foot{padding:13px 16px}.hdt-filter-results-header{align-items:flex-start;flex-direction:column}.hdt-filter-results-header .hdt-filter-edit{width:100%;justify-content:center}.hdt-filter-years{grid-template-columns:repeat(4,1fr)}
}


/* BFLIX integration polish. */
.watching_player-control .m2w-watch-party-trigger,
.watching_player-control .m2w-report-trigger,
.watching_player-control .goto-comments {
  vertical-align: middle;
}
.m2w-report-check input:not(:checked) + span i { opacity: 0 !important; visibility: hidden !important; }
.m2w-report-check input:checked + span i { opacity: 1 !important; visibility: visible !important; }
.m2w-report-check > span { background:#171621; border-color:#4d4965; }
.m2w-report-check input:checked + span { border-color:#db0e52; background:#db0e52; color:#221d49; }
.m2w-report-select-wrap select:focus, .m2w-report-other textarea:focus { border-color:#db0e52; box-shadow:0 0 0 3px rgba(219,14,82,.16); }
.m2w-report-select-wrap > i:first-child, .m2w-report-group legend i { color:#db0e52; }
.m2w-report-submit { border-color:#db0e52; background:linear-gradient(145deg,#f04c84,#ee0f59); color:#221d49; box-shadow:0 10px 22px -14px rgba(219,14,82,.9); }
.m2w-report-submit:hover, .m2w-report-submit:focus { border-color:#f58aad; background:#ee0f59; color:#221d49; }
.m2w-report-label strong { color:#f58aad; }
.hdt-filter-modal .modal-content { box-shadow:0 25px 70px rgba(33,30,66,.25); }
.hdt-filter-submit { background:linear-gradient(135deg,#db0e52,#a80a40); color:#221d49; }
.hdt-filter-edit { background:#db0e52; color:#221d49 !important; }
.hdt-filter-pagination a.active { border-color:#db0e52; background:#db0e52; color:#221d49 !important; }

/* BFLIX v2 - category filter button/header layout */
.block_area_category > .block_area-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  width: 100% !important;
  min-height: 44px;
}

.block_area_category > .block_area-header .bah-heading {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

.block_area_category > .block_area-header .bah-filter {
  float: none !important;
  flex: 0 0 auto;
  margin: 0 0 0 auto !important;
  position: static !important;
}

.block_area_category > .block_area-header > .clearfix {
  display: none !important;
}

.block_area_category .bah-filter .btn-in-headcat {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 92px;
  min-height: 38px;
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 9px !important;
  background: #db0e52 !important;
  color: #221d49 !important;
  box-shadow: 0 8px 20px rgba(24,20,55,.22);
  font-size: 13px !important;
  font-weight: 700;
  line-height: 18px !important;
  opacity: 1 !important;
  white-space: nowrap;
}

.block_area_category .bah-filter .btn-in-headcat:hover,
.block_area_category .bah-filter .btn-in-headcat:focus {
  background: #f04c84 !important;
  border-color: #c9c5ff !important;
  color: #17142f !important;
  box-shadow: 0 10px 24px rgba(24,20,55,.3);
  outline: 0;
}

.block_area_category .bah-filter .btn-in-headcat i {
  margin: 0 !important;
  color: inherit !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

@media (max-width: 575.98px) {
  .block_area_category > .block_area-header {
    min-height: 40px;
    padding-right: 0 !important;
  }

  .block_area_category > .block_area-header .bah-filter {
    position: static !important;
    top: auto !important;
    right: auto !important;
  }

  .block_area_category .bah-filter .btn-in-headcat {
    min-width: 82px;
    min-height: 36px;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 18px !important;
  }
}

/* BFLIX integration: player actions, filter modal and results. */
#film-controls .film-controls-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 14px;
}
#film-controls .film-control.goto-comments,
#film-controls .film-control.m2w-watch-party-trigger,
#film-controls .film-control.m2w-report-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}
#film-controls .film-control .m2w-comment-button-count {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-left: 1px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(219,14,82,.16);
  color: #ee0f59;
  font-size: 9px;
  font-weight: 800;
}
#film-controls .film-control.m2w-report-trigger,
#film-controls button.film-control.m2w-report-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  box-shadow: none;
}
#film-controls .film-control.goto-comments:hover,
#film-controls .film-control.m2w-watch-party-trigger:hover,
#film-controls .film-control.m2w-report-trigger:hover {
  color: #ee0f59;
}

/* Dark BFLIX version of the BFLIX multi-choice filter. */
.hdt-filter-modal { z-index: 1120; }
.hdt-filter-modal .modal-content {
  border: 1px solid #342d5d;
  background: #151226;
  color: #eeeaf8;
  box-shadow: 0 25px 75px rgba(0,0,0,.62);
}
.hdt-filter-head {
  border-bottom-color: #342d5d;
  background: linear-gradient(135deg,#211b40,#171329);
}
.hdt-filter-kicker { color: #ee0f59; }
.hdt-filter-head h2 { color: #fff; }
.hdt-filter-head p { color: #aaa1c5; }
.hdt-filter-close { background: #2a234a; color: #c9c0dc; box-shadow: none; }
.hdt-filter-close:hover { background: #db0e52; color: #fff; }
.hdt-filter-search>span,.hdt-filter-select-row label>span { color: #c7bfd9; }
.hdt-filter-search i { color: #8d83a8; }
.hdt-filter-search input {
  border-color: #3b335e !important;
  background: #0f0d1c !important;
  color: #fff !important;
}
.hdt-filter-search input::placeholder { color: #706883; }
.hdt-filter-search input:focus { border-color:#db0e52 !important; box-shadow:0 0 0 3px rgba(219,14,82,.13) !important; }
.hdt-filter-section-title strong { color:#f5f1fb; }
.hdt-filter-section-title span { color:#817991; }
.hdt-filter-pill span {
  border-color:#3c345f;
  background:#18142b;
  color:#bdb5d0;
}
.hdt-filter-pill input:checked+span {
  border-color:#db0e52;
  background:rgba(219,14,82,.15);
  color:#ff7ca9;
}
.hdt-filter-grid .hdt-filter-section {
  border-color:#342d55;
  background:#110f20;
}
.hdt-filter-options label span { color:#a9a1ba; }
.hdt-filter-options label:hover span { background:#211b38; color:#fff; }
.hdt-filter-options input:checked+span {
  border-color:rgba(219,14,82,.6);
  background:rgba(219,14,82,.13);
  color:#f77aa5;
}
.hdt-filter-select-row select {
  border-color:#3b335e !important;
  background:#0f0d1c !important;
  color:#f2edf9 !important;
}
.hdt-filter-select-row select option { background:#fff; color:#111; }
.hdt-filter-foot { border-top-color:#342d5d; background:#100e1d; }
.hdt-filter-reset { border-color:#3a3455; background:#1a1727; color:#b8afc9 !important; }
.hdt-filter-submit { background:linear-gradient(135deg,#ee0f59,#a80a40); color:#fff; }
.hdt-filter-submit:hover { filter:brightness(1.08); }

.hdt-filter-results-page { color:#e8e2f0; }
.hdt-filter-results-page .block_area_category { margin-top: 20px; }
.hdt-filter-results-header {
  border-color:#302a48;
  background:#18151f;
  box-shadow:none;
}
.hdt-filter-results-kicker { color:#ee0f59; }
.hdt-filter-results-header h1 { color:#fff; }
.hdt-filter-results-header p { color:#9b93a7; }
.hdt-filter-edit { background:#db0e52; color:#fff !important; }
.hdt-filter-active-list span { background:rgba(219,14,82,.14); color:#f37ca5 !important; }
.hdt-filter-active-list a { background:#28242f; color:#c3bbc9 !important; }
.hdt-filter-empty { border-color:#3b3447; background:#18151f; }
.hdt-filter-empty>span { background:rgba(219,14,82,.15); color:#ee0f59; }
.hdt-filter-empty h2 { color:#fff; }
.hdt-filter-empty p { color:#9b93a7; }
.hdt-filter-pagination a,.hdt-filter-pagination span {
  border-color:#332e3d;
  background:#1c1920;
  color:#c9c2cd !important;
}
.hdt-filter-pagination a.active { border-color:#db0e52; background:#db0e52; color:#fff !important; }

/* Category/list filter button: keep it visible on the right. */
.site-search-filter-btn { white-space: nowrap; }
.bflix-filter-inline-btn {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-left:auto;
  padding:7px 11px;
  border:0;
  border-radius:6px;
  background:#db0e52;
  color:#fff !important;
  font-size:11px;
  font-weight:700;
  line-height:1;
  text-decoration:none !important;
  cursor:pointer;
}
.bflix-filter-inline-btn:hover { background:#ee0f59; color:#fff !important; }

@media (max-width:767px) {
  #film-controls .film-controls-wrap { gap: 2px 10px; }
  #film-controls .film-control span { white-space: nowrap; }
}
