/* 集梦影视 · 本片附带（字幕 / 精华片段） */

/* ══════ 本片附带区块 ══════ */
.jm-extra-box {
  margin: 14px 0 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(52,224,255,.08), rgba(63,140,255,.03));
  border: 1px solid rgba(52,224,255,.28);
  border-radius: 13px;
}
.jm-extra-box .jb-hd {
  display: flex; align-items: center; gap: 8px; margin-bottom: 11px;
}
.jm-extra-box .jb-ic { font-size: 16px; line-height: 1; }
.jm-extra-box .jb-tx { font-size: 13px; font-weight: 900; color: #34e0ff; }
.jm-extra-box .jb-tip { margin-left: auto; font-size: 10.5px; color: #5d6b8c; }

.jm-extra-box .jb-list { display: flex; gap: 9px; flex-wrap: wrap; }

.jm-extra-box .jb-item {
  flex: 1; min-width: 160px;
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px;
  background: #0b1222; border: 1px solid #24314f; border-radius: 10px;
  text-decoration: none !important; transition: .15s; cursor: pointer;
}
.jm-extra-box .jb-item:hover {
  border-color: rgba(52,224,255,.55);
  background: rgba(52,224,255,.05);
  transform: translateY(-1px);
}
.jm-extra-box .jb-item-ic { font-size: 17px; line-height: 1; flex-shrink: 0; }
.jm-extra-box .jb-item-tx { font-size: 12.5px; font-weight: 800; color: #e0e8f5; flex: 1; min-width: 0; }
.jm-extra-box .jb-item-go { font-size: 10.5px; font-weight: 800; color: #34e0ff; white-space: nowrap; flex-shrink: 0; }
.jm-extra-box .jb-item.jb-clip:hover { border-color: rgba(255,200,87,.6); background: rgba(255,200,87,.05); }
.jm-extra-box .jb-item.jb-clip .jb-item-go { color: #ffc857; }

/* ══════ 弹窗 ══════ */
.jm-xm-mask {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.jm-xm-mask.on { opacity: 1; pointer-events: auto; }

.jm-xm {
  position: fixed; z-index: 9999;
  left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(.96);
  width: 480px; max-width: calc(100vw - 32px);
  max-height: 80vh;
  display: flex; flex-direction: column;
  background: #0d1626;
  border: 1px solid #24314f;
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0,0,0,.7);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s cubic-bezier(.4,0,.2,1);
}
.jm-xm.on {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

/* 头部 */
.jm-xm-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #1a3a6b, #0f2347);
  border-bottom: 1px solid rgba(52,224,255,.22);
  flex-shrink: 0;
}
.jm-xm-hd .ic { font-size: 20px; line-height: 1; }
.jm-xm-hd .tx { flex: 1; color: #edf3ff; font-size: 14.5px; font-weight: 900; }
.jm-xm-hd .x {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 0;
  color: #c9d6f0; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .15s; font-family: inherit;
}
.jm-xm-hd .x:hover { background: rgba(255,255,255,.2); }

/* 主体 */
.jm-xm-bd {
  flex: 1; overflow-y: auto; padding: 18px;
  min-height: 0;
}
.jm-xm-bd::-webkit-scrollbar { width: 5px; }
.jm-xm-bd::-webkit-scrollbar-thumb { background: #24314f; border-radius: 3px; }

/* 加载 */
.xm-loading {
  padding: 40px 20px; text-align: center;
  color: #6b7899; font-size: 13px;
}

/* 状态卡 */
.xm-state {
  padding: 28px 20px; text-align: center;
}
.xm-state .st-ic { font-size: 40px; margin-bottom: 14px; line-height: 1; }
.xm-state .st-tx {
  font-size: 15px; font-weight: 900; color: #edf3ff;
  margin-bottom: 8px; line-height: 1.5;
}
.xm-state.warn .st-tx { color: #ffc857; }
.xm-state.err .st-tx { color: #ff7b7b; }
.xm-state .st-sub {
  font-size: 12px; color: #8fa4c8; line-height: 1.8;
  margin-bottom: 18px;
}
.xm-state .st-btn {
  display: block; width: 100%;
  padding: 12px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid #24314f;
  color: #8fa4c8 !important; font-size: 13px; font-weight: 800;
  cursor: pointer; font-family: inherit; text-decoration: none !important;
  transition: .15s; box-sizing: border-box;
  margin-bottom: 9px;
}
.xm-state .st-btn:hover { border-color: rgba(52,224,255,.5); color: #34e0ff !important; }
.xm-state .st-btn.primary {
  background: linear-gradient(135deg, #3f8cff, #34e0ff);
  border: 0; color: #06121f !important;
  box-shadow: 0 5px 20px rgba(63,140,255,.35);
}
.xm-state .st-btn.primary:hover { transform: translateY(-1px); }

/* 已解锁 */
.xm-ok {
  padding: 11px 15px; margin-bottom: 14px;
  background: rgba(74,222,128,.12);
  border: 1px solid rgba(74,222,128,.35);
  border-radius: 10px;
  color: #4ade80; font-size: 12.5px; font-weight: 800;
}
.xm-src {
  font-size: 10.5px; color: #5d6b8c;
  margin-bottom: 14px; line-height: 1.7;
  word-break: break-all;
}

/* 链接列表 */
.xm-links { display: flex; flex-direction: column; gap: 10px; }
.xm-link {
  padding: 13px 15px;
  background: #0b1222; border: 1px solid #24314f; border-radius: 10px;
}
.xm-link .lk-name {
  font-size: 12px; font-weight: 900; color: #34e0ff;
  margin-bottom: 9px;
}
.xm-link .lk-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.xm-link .lk-btn {
  padding: 9px 18px; border-radius: 9px;
  background: rgba(52,224,255,.12);
  border: 1px solid rgba(52,224,255,.4);
  color: #34e0ff; font-size: 12.5px; font-weight: 800;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.xm-link .lk-btn:hover {
  background: rgba(52,224,255,.22);
  transform: translateY(-1px);
}
.xm-link .lk-code {
  font-size: 11.5px; color: #8fa4c8;
}
.xm-link .lk-code b {
  color: #ffc857; font-family: Consolas, Monaco, monospace;
  font-size: 13px; letter-spacing: 1px;
}
.xm-link .lk-open {
  flex: 1; min-width: 0;
  padding: 8px 12px; border-radius: 8px;
  background: rgba(74,222,128,.1);
  border: 1px solid rgba(74,222,128,.35);
  color: #4ade80 !important;
  font-size: 11px; font-family: Consolas, monospace;
  text-decoration: none !important;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: block;
}
.xm-link .lk-open:hover { background: rgba(74,222,128,.2); }

/* 解压密码 */
.xm-unzip {
  margin-top: 13px; padding: 11px 15px;
  background: rgba(255,200,87,.06);
  border: 1px solid rgba(255,200,87,.3);
  border-radius: 9px;
  font-size: 11.5px; color: #a8925a;
}
.xm-unzip b { color: #ffc857; font-family: Consolas, monospace; }

/* 提示 */
.xm-tip {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(36,49,79,.6);
  font-size: 10.5px; color: #5d6b8c; line-height: 1.8;
}
.xm-tip a { color: #34e0ff !important; text-decoration: none !important; }

/* 移动端 */
@media (max-width: 900px) {
  .jm-extra-box { padding: 12px 14px; }
  .jm-extra-box .jb-list { flex-direction: column; }
  .jm-extra-box .jb-item { min-width: 0; }

  .jm-xm {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
  }
  .jm-xm.on { transform: translateY(0); }
  .jm-xm-hd { padding: 13px 16px; }
  .jm-xm-bd { padding: 15px; }
}


/* 本片附带 · 编辑入口 */
.jm-extra-box .jb-edit {
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 7px;
  background: rgba(63,140,255,.12);
  border: 1px solid rgba(63,140,255,.4);
  color: #6db3ff !important;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none !important;
  transition: .15s;
  white-space: nowrap;
}
.jm-extra-box .jb-edit:hover {
  background: rgba(63,140,255,.25);
  border-color: #3f8cff;
}
