/* 附近巡礼点封面样式 */
.nearby-covers-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 300px;
}

/* 桌面版样式调整，确保不被左侧栏遮挡 */
@media (min-width: 769px) {
  .nearby-covers-container {
    left: 440px; /* 侧边栏宽度(320px) + 更充足间距，确保第一个封面完全可见 */
  }

  /* 当设置页面激活时，调整位置以适应更宽的侧边栏 */
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .nearby-covers-container {
    left: calc(var(--sidebar-width-settings, 480px) + 80px); /* 设置页面侧边栏宽度 + 更充足间距 */
    transition: left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
}

.nearby-cover-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nearby-cover-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.nearby-cover-item.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.nearby-cover-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 移动端样式调整 */
@media (max-width: 768px) {
  .nearby-covers-container {
    top: 70px;
    max-width: 200px;
  }
  
  .nearby-cover-item {
    width: 40px;
    height: 40px;
  }
}

/* 动画效果 */
.nearby-cover-item {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* 同一动漫多个巡礼点的小图标样式 */
.anime-marker-small {
  width: 25px !important;
  height: 25px !important;
  border: 2px solid white;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}