.explore-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.explore-section-header {
  margin-bottom: 14px;
}

.explore-section-subtitle {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.explore-section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.explore-search-shortcut {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  will-change: transform;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-spring), border-color var(--transition-fast);
}

.explore-search-shortcut:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(219, 39, 119, 0.9));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 4px 14px rgba(236, 72, 153, 0.35);
  transform: scale(1.12);
}

.explore-search-shortcut:active {
  transform: scale(0.88);
  transition: transform var(--transition-press);
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.board-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  padding: 10px;
  cursor: pointer;
  transition: transform var(--transition-spring), border-color var(--transition-fast), background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.board-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(236, 72, 153, 0.45);
}

.board-card:active {
  transform: scale(0.97);
  transition: transform var(--transition-press);
}

.board-collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.04);
}

.board-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.board-sub-imgs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 100%;
}

.board-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: rgba(255, 255, 255, 0.02);
}

.board-meta {
  padding: 0 4px;
}

.board-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-author {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: var(--brand-lotus);
  color: #ffffff;
  font-size: 0.65rem;
}

.board-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.popular-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.popular-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.333;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-spring), border-color var(--transition-fast);
}

.popular-thumb-wrapper:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--brand-lotus);
}

.popular-thumb-wrapper:active {
  transform: scale(0.94);
  transition: transform var(--transition-press);
}

.popular-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.explore-topic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 18px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.explore-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.25);
  color: var(--text-primary);
  cursor: pointer;
  flex-shrink: 0;
  will-change: transform;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-spring), border-color var(--transition-fast);
}

.explore-back-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.explore-back-btn:active {
  transform: scale(0.88);
  transition: transform var(--transition-press);
}

.explore-topic-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.recent-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-title-icon {
  color: var(--brand-lotus);
  flex-shrink: 0;
}

.recent-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.recent-clear-btn:hover {
  color: var(--brand-lotus);
}

.recent-chips-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.recent-chips-row::-webkit-scrollbar {
  display: none;
}

.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.recent-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(236, 72, 153, 0.5);
  transform: translateY(-1px);
}

.recent-chip-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.recent-chip-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.recent-chip-remove:hover {
  color: var(--brand-lotus);
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.idea-card {
  position: relative;
  aspect-ratio: 1 / 1.35;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-spring), border-color var(--transition-fast);
}

.idea-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-lotus);
}

.idea-card:active {
  transform: scale(0.96);
  transition: transform var(--transition-press);
}

.idea-media-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.idea-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.idea-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.idea-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-lotus);
  margin-bottom: 3px;
}

.idea-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 1024px) {
  .explore-container {
    padding: 16px 12px 60px;
    gap: 28px;
  }
  .ideas-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .boards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .board-collage {
    height: 150px;
  }
  .popular-row {
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .explore-container {
    padding: 10px 4px 95px;
    gap: 22px;
  }
  .explore-section-subtitle {
    font-size: 0.74rem;
  }
  .explore-section-title {
    font-size: 1.15rem;
  }
  .explore-search-shortcut {
    width: 32px;
    height: 32px;
  }
  .ideas-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ideas-grid::-webkit-scrollbar {
    display: none;
  }
  .idea-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    border-radius: 14px;
  }
  .idea-overlay {
    padding: 10px;
  }
  .idea-title {
    font-size: 0.85rem;
  }
  .boards-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 0 4px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .boards-grid::-webkit-scrollbar {
    display: none;
  }
  .board-card {
    flex: 0 0 250px;
    max-width: 78vw;
    scroll-snap-align: start;
    padding: 8px;
    border-radius: 14px;
  }
  .board-collage {
    height: 135px;
    gap: 3px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .board-title {
    font-size: 0.92rem;
  }
  .board-author {
    font-size: 0.76rem;
  }
  .board-stats {
    font-size: 0.72rem;
  }
  .popular-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  .popular-thumb-wrapper {
    border-radius: 8px;
  }
  .popular-thumb-wrapper:nth-child(n+5) {
    display: none;
  }
  .explore-topic-header {
    padding: 8px 6px 14px;
    gap: 10px;
  }
  .explore-back-btn {
    width: 34px;
    height: 34px;
  }
  .explore-topic-title {
    font-size: 1.1rem;
  }
}
