
/* 页面整体宽度控制 */
.neodb-container {
  max-width: 64ch;
  margin: 0 auto;
}

/* 分类按钮组样式（保持原样，无需修改） */
.neodb-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 0.95rem;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover {
  background-color: #e0e0e0;
}

.filter-btn.active {
  background-color: #333;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.date-selector-wrapper {
  position: relative;
  z-index: 200;
}

/* 触发按钮 */
.date-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: var(--spacing-xs);
  color: var(--color-text-primary);
  font-family: inherit;
}

.date-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-text-primary);
  padding: 15px;
  display: none; /* 默认隐藏 */
  box-shadow: 10px 10px 0px var(--color-text-primary); /* 复古硬阴影 */
  margin-top: 10px;
}

.date-dropdown.show {
  display: block;
}

.selector-columns {
  display: flex;
  gap: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}

.opt {
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  text-align: center
}

.opt:hover {
  background: var(--color-selection-bg);
}

.opt.active {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

.go-btn {
  width: 100%;
  margin-top: 10px;
  background: none;
  border: 1px solid var(--color-text-primary);
  padding: 5px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: bold;
}

.go-btn:hover {
  background: var(--color-text-primary);
  color: var(--color-bg-primary);
}

/* 网格布局 */
.neodb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px; /* 缩小间距，让网格更紧凑 */
  margin-top: 20px;
}

/* ====================
   卡片核心样式（遮罩 hover 关键）
   ==================== */

.neodb-card {
  position: relative; 
  aspect-ratio: 2 / 3; 
  border-radius: var(--pre-border-radius);
  overflow: hidden; 
  text-decoration: none;
  background-color: var(--color-bg-primary);
  transition: transform 0.3s ease; 
  box-shadow: none;
}

/* 鼠标悬浮时，整个卡片轻轻放大 */
.neodb-card:hover {
  transform: scale(1.015);
  z-index: 10;
}

/* 海报封面区（保持填满卡片） */
.neodb-cover {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.neodb-cover img {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  object-fit: cover;
  display: block;
}

/* ====================
   遮罩层样式（关键修缮）
   ==================== */

.neodb-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; 
  justify-content: space-between;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.7); 
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 【关键】鼠标悬浮在卡片（.neodb-card）上时，让遮罩（.neodb-info）显示出来 */
.neodb-card:hover .neodb-info {
  opacity: 1;
}

/* 标题样式调整（适配遮罩背景） */
.neodb-title {
  margin: 0;
  font-weight: bold;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.neodb-comment {
  flex-grow: 1; 
  display: flex; 
  align-items: center;   
  justify-content: center;
  width: 100%;
  margin: 10px 0;
  overflow: hidden;      
}

.comment-text-inner {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #f0f0f0;
}

/* 调整标题和评分的间距，给评论腾位置 */
.neodb-title {
  margin-bottom: 5px;
  font-size: 0.9rem;
}