/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
* {
    scrollbar-width: none;
}

/* IE and Edge */
* {
    -ms-overflow-style: none;
}

iframe {
    height:42em; 
}

/* qBittorrent 弹窗样式 */
#qbittorrent-id {
  cursor: pointer;
  transition: transform 0.2s ease;
}
/* 弹窗动画效果 */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50%;
  width: 300px;
  height: 300px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
}

.custom-modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* 弹窗内容样式优化 */
.modal-header h2 {
  color: #1d1d1f;
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.torrent-info {
  width: 100%;
  text-align: center;
}

.torrent-info p {
  margin: 12px 0;
  color: #1d1d1f;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.torrent-info span {
  font-weight: 500;
  color: #0066cc;
  background: rgba(0, 102, 204, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
}

/* customapi block 值过长时截断成一行省略号；要加服务就往下面两组选择器里加 data-name */
li.service[data-name="AMDL"] .service-block,
li.service[data-name="BiliSync"] .service-block {
  min-width: 0;
}

li.service[data-name="AMDL"] .service-block > div:first-child,
li.service[data-name="BiliSync"] .service-block > div:first-child {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
