/* === 1. 檢舉入口按鈕 === */
/*
#reportBtnWrap {
  text-align: center;
  margin: 0px 0 10px;
}
#reportBtn {
  display: inline-block;
  margin: auto;
  padding: 0;                     
  border: none;                   
  background: transparent;         
  color: #d10000;                 
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  text-decoration: none;
  font-family: "Microsoft JhengHei", system-ui, -apple-system, "PingFang TC", sans-serif;
}
#reportBtn:hover {
  opacity: 0.8;
}
#reportBtn:active {
  opacity: 0.6;
}
@media (max-width: 600px) {
  #reportBtn {
    font-size: 16px;
  }
}*/


/* === 2. 檢舉彈窗覆蓋層（須高於章節頁 .pt-mask / .pt-chapter-nav 的 2147483647） === */
#reportModal {
  display: none;                 /* JS 控制顯示 */
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  isolation: isolate;
  background: rgba(0, 0, 0, 0.52);
}

@supports (background: color-mix(in srgb, red, blue)) {
  #reportModal {
    background: color-mix(in srgb, var(--reader-outer-bg, #edf0f4) 22%, rgb(0 0 0 / 0.52));
  }
}


/* === 3. 彈窗內容框（與章節頁 --reader-* 變量一致） === */
#reportModal .report-box {
  max-width: 480px;
  width: 92vw;
  margin: 10% auto;
  background: var(--reader-inner-bg, #ffffff);
  border: 1px solid var(--reader-inner-border, #e5e5e5);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  text-align: left;
  font-family: "Microsoft JhengHei", system-ui, -apple-system, "PingFang TC", sans-serif;
}


/* === 4. 標題與提示文字 === */
#reportModal .report-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #1a1a1a;
}
#reportModal .report-tip {
  font-size: 14px;
  color: #444;
  margin: 0 0 10px;
}

@supports (color: color-contrast(white vs black, white)) {
  #reportModal .report-title,
  #reportModal .report-tip,
  #reportModal .report-list label {
    color: color-contrast(var(--reader-inner-bg, #ffffff) vs #1a1a1a, #e8e8e8);
  }
}

body.pt-body-night #reportModal .report-title,
body.pt-body-night #reportModal .report-tip,
body.pt-body-night #reportModal .report-list label {
  color: #d0d0d0;
}


/* === 5. 檢舉原因列表（靠左排列） === */
#reportModal .report-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 10px;
}
#reportModal .report-list li {
  margin: 8px 0;
}
#reportModal .report-list label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
  white-space: normal;
}
#reportModal .report-list input[type="radio"] {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: middle;
  flex: 0 0 auto;
}


/* === 6. 補充說明區 === */
#reportModal .report-textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  border: 1px solid var(--reader-inner-border, #ddd);
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  color: #222;
  resize: vertical;
  outline: none;
  background: var(--reader-inner-bg, #ffffff);
}

@supports (background: color-mix(in srgb, red, blue)) {
  #reportModal .report-textarea {
    background: color-mix(in srgb, var(--reader-inner-bg, #ffffff) 93%, #707070);
  }
}

@supports (color: color-contrast(white vs black, white)) {
  #reportModal .report-textarea {
    color: color-contrast(var(--reader-inner-bg, #ffffff) vs #1a1a1a, #e8e8e8);
  }
}

body.pt-body-night #reportModal .report-textarea {
  color: #c8c8c8;
  background: color-mix(in srgb, var(--reader-inner-bg, #1a1a1a) 88%, #000000);
}


/* === 7. 操作按鈕區（靠右） === */
#reportModal .report-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}
#reportModal .report-btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  line-height: 1;
}
#reportModal .report-btn--secondary {
  border: 1px solid var(--reader-inner-border, #ccc);
  background: var(--reader-inner-bg, #ffffff);
  color: #333;
}

@supports (background: color-mix(in srgb, red, blue)) {
  #reportModal .report-btn--secondary {
    background: color-mix(
      in srgb,
      var(--reader-inner-bg, #ffffff) 88%,
      var(--reader-inner-border, #cccccc) 12%
    );
  }
}

@supports (color: color-contrast(white vs black, white)) {
  #reportModal .report-btn--secondary {
    color: color-contrast(var(--reader-inner-bg, #ffffff) vs #1a1a1a, #e8e8e8);
  }
}

body.pt-body-night #reportModal .report-btn--secondary {
  color: #d0d0d0;
  background: color-mix(in srgb, var(--reader-inner-bg, #1a1a1a) 92%, #ffffff);
}
#reportModal .report-btn--primary {
  background: #e60000;
  color: #fff;
}


/* === 8. 響應式微調 === */
@media (max-width: 480px) {
  #reportModal .report-box {
    width: 94vw;
    padding: 16px;
  }
  #reportModal .report-textarea {
    min-height: 80px;
    font-size: 13.5px;
  }
  #reportModal .report-btn {
    font-size: 13.5px;
    padding: 7px 12px;
  }
}
