/* 集梦影视 · 搜索页 */

.jm-sr { max-width: 1100px; margin: 0 auto; padding: 22px 16px 80px; }

.jm-sr-crumb { display: flex; align-items: center; gap: 8px; color: #6b7899; font-size: 12.5px; margin-bottom: 20px; }
.jm-sr-crumb a { color: #8b98b8; text-decoration: none; }
.jm-sr-crumb a:hover { color: #34e0ff; }
.jm-sr-crumb b { color: #edf3ff; font-weight: 700; }
.jm-sr-sep { color: #3d4a68; }

/* ══════ 搜索框 ══════ */
.jm-sr-box {
  background: linear-gradient(135deg, rgba(63,140,255,.12), rgba(52,224,255,.04) 60%, transparent), #101a31;
  border: 1px solid rgba(63,140,255,.28);
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 20px;
}

.jm-sr-form { display: flex; gap: 10px; }
.jm-sr-input {
  flex: 1;
  padding: 15px 22px;
  background: #0b1222;
  border: 2px solid #24314f;
  border-radius: 12px;
  color: #edf3ff;
  font-size: 15px;
  font-family: inherit;
  transition: .16s;
  box-sizing: border-box;
}
.jm-sr-input:focus {
  outline: none;
  border-color: #34e0ff;
  background: #0d1526;
  box-shadow: 0 0 0 4px rgba(52,224,255,.12);
}
.jm-sr-input::placeholder { color: #4a5878; }

.jm-sr-btn {
  padding: 15px 34px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3f8cff, #34e0ff);
  color: #06121f;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
  transition: .16s;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(63,140,255,.32);
}
.jm-sr-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(63,140,255,.45); }

/* 热门搜索 */
.jm-sr-hot {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(63,140,255,.2);
}
.jm-sr-hot .lb { color: #ff8c3c; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.jm-sr-hot a {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid #24314f;
  color: #8fa4c8 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: .15s;
}
.jm-sr-hot a:hover {
  background: rgba(52,224,255,.1);
  border-color: rgba(52,224,255,.45);
  color: #34e0ff !important;
}
.jm-sr-hot .none { color: #5d6b8c; font-size: 12px; }

/* ══════ 筛选栏 ══════ */
.jm-sr-filt {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #101a31;
  border: 1px solid #24314f;
  border-radius: 12px;
  margin-bottom: 14px;
}
.jm-sr-filt .grp { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.jm-sr-filt .grp.right { margin-left: auto; }
.jm-sr-filt .lb { color: #5d6b8c; font-size: 11.5px; margin-right: 3px; }
.jm-sr-filt .it {
  padding: 6px 15px;
  border-radius: 8px;
  color: #8fa4c8 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: .15s;
}
.jm-sr-filt .it:hover { background: rgba(255,255,255,.05); color: #34e0ff !important; }
.jm-sr-filt .it.on {
  background: linear-gradient(135deg, rgba(52,224,255,.22), rgba(63,140,255,.1));
  color: #34e0ff !important;
  box-shadow: 0 2px 10px rgba(52,224,255,.2);
}

/* ══════ 结果统计 ══════ */
.jm-sr-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 0 4px;
  color: #6b7899;
  font-size: 12.5px;
}
.jm-sr-info b { color: #34e0ff; font-weight: 900; }
.jm-sr-info em { color: #ffc857; font-style: normal; font-weight: 900; font-size: 14px; }
.jm-sr-info .pg { margin-left: auto; color: #5d6b8c; }

/* ══════ 结果网格 ══════ */
.jm-sr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 13px;
}

.jm-sr-g {
  display: block;
  background: #101a31;
  border: 1px solid #24314f;
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none !important;
  transition: .18s;
}
.jm-sr-g:hover {
  border-color: rgba(52,224,255,.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,.4);
}

.jm-sr-g .cov {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 133%;
  background: linear-gradient(135deg, #1b2a4a, #101a30);
  overflow: hidden;
}
.jm-sr-g .cov img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.jm-sr-g .cov .noimg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  opacity: .32;
}
.jm-sr-g .cov .pr {
  position: absolute;
  left: 0; bottom: 0;
  padding: 3px 10px;
  background: rgba(255,200,87,.92);
  color: #1a1200;
  font-size: 10.5px;
  font-weight: 900;
  border-radius: 0 8px 0 0;
}
.jm-sr-g .cov .pr.free {
  background: rgba(74,222,128,.92);
  color: #052e16;
}

.jm-sr-g .bd { display: block; padding: 11px 13px 13px; }
.jm-sr-g .ttl {
  display: block;
  color: #edf3ff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 37px;
  word-break: break-all;
}
.jm-sr-g .ttl mark {
  background: rgba(255,200,87,.28);
  color: #ffc857;
  padding: 0 2px;
  border-radius: 3px;
}
.jm-sr-g .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  color: #5d6b8c;
}
.jm-sr-g .meta em {
  font-style: normal;
  color: #6b7899;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════ 翻页 ══════ */
.jm-sr-pages {
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.jm-sr-pages a {
  padding: 9px 16px;
  border-radius: 9px;
  background: #101a31;
  border: 1px solid #24314f;
  color: #8fa4c8 !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: .15s;
}
.jm-sr-pages a:hover { border-color: #34e0ff; color: #34e0ff !important; }
.jm-sr-pages a.on {
  background: linear-gradient(135deg, #3f8cff, #34e0ff);
  border-color: #34e0ff;
  color: #06121f !important;
}

/* ══════ 空结果 ══════ */
.jm-sr-empty {
  padding: 70px 24px;
  text-align: center;
  background: #101a31;
  border: 1px dashed #24314f;
  border-radius: 16px;
}
.jm-sr-empty .ic { display: block; font-size: 52px; margin-bottom: 16px; opacity: .4; }
.jm-sr-empty b { display: block; color: #c9d6f0; font-size: 16px; margin-bottom: 8px; }
.jm-sr-empty i { display: block; color: #5d6b8c; font-size: 12.5px; font-style: normal; margin-bottom: 22px; }
.jm-sr-empty .try {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.jm-sr-empty .try .lb { color: #6b7899; font-size: 12px; }
.jm-sr-empty .try a {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid #24314f;
  color: #8fa4c8 !important;
  font-size: 12px;
  text-decoration: none !important;
}
.jm-sr-empty .try a:hover { border-color: #34e0ff; color: #34e0ff !important; }
.jm-sr-empty .go {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, #3f8cff, #34e0ff);
  color: #06121f !important;
  font-size: 13.5px;
  font-weight: 900;
  text-decoration: none !important;
}

/* 移动端 */
@media (max-width: 640px) {
  .jm-sr-form { flex-direction: column; }
  .jm-sr-btn { width: 100%; }
  .jm-sr-filt { flex-direction: column; gap: 10px; }
  .jm-sr-filt .grp.right { margin-left: 0; }
  .jm-sr-grid { grid-template-columns: repeat(2, 1fr); }
}
