/* Discover: For U · ALL · Latest · Search */

/* ---------- top tabs ---------- */
.discover-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 8px 0 var(--gutter);
  border-bottom: 1px solid var(--glass-edge);
}
.top-tabs { display: flex; align-items: baseline; gap: 26px; }
.top-tab { font-size: 19px; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); transition: color .15s, font-size .15s; }
.top-tab.is-active {
  font-size: 27px; font-weight: 700; letter-spacing: -.02em;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top-search .icon { width: 28px; height: 28px; }
@media (min-width: 640px) { .discover-top { padding-left: max(var(--gutter), calc((100vw - 1024px) / 2 + var(--gutter))); padding-right: max(8px, calc((100vw - 1024px) / 2)); } }

.discover-page .section-head:first-child { margin-top: 18px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- ALL: filter boxes ---------- */
.filter-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 20px; }
.filter-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 68px; padding: 0 6px; border-radius: 8px; min-width: 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 3px 8px rgba(0, 0, 0, .1);
}
.filter-box-label { font-size: 15px; color: var(--text-2); }
.filter-box-value { font-size: 20px; color: var(--accent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }
.filter-sheet .chip-grid.cols-1 .chip { min-height: 42px; font-size: 15px; }
.gap-10 { height: 10px; }

/* ---------- Latest ---------- */
.latest-list { margin-top: 6px; }
.latest-row .thumb { width: 72px; }
.latest-ch { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 14.5px; color: var(--accent); }
.new-dot { padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--pink); }
.row-chevron { width: 18px; height: 18px; color: var(--muted); }

/* ---------- Search ---------- */
.search-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 4px;
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0 4px;
  border-bottom: 1px solid var(--glass-edge);
}
.search-field {
  flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.search-field .icon { width: 20px; height: 20px; }
.search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.search-results { padding-top: 18px; }
.search-block { margin-bottom: 26px; }
.search-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 15px; color: var(--text-2); }
.link-btn { color: var(--accent-light); font-size: 14px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.search-count { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.search-none { text-align: center; padding: 40px 0; }
