.discovery-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.discovery-page #main-content { padding-top: 20px; }
.discovery-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.discovery-search-trigger[hidden],
.discovery-tools[hidden],
.discovery-toggle[hidden] { display: none; }
.discovery-search-trigger .ui-icon { width: 18px; height: 18px; color: var(--accent); }
.discovery-search-trigger:hover,
.discovery-search-trigger[aria-expanded="true"] {
  background: #f4be7010;
  border-color: #f4be7033;
}
.discovery-categories {
  gap: 7px;
  margin: 0 0 14px;
  padding: 3px 2px 5px;
  border: 0;
  scrollbar-width: none;
}
.discovery-categories::-webkit-scrollbar { display: none; }
.discovery-categories a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.discovery-categories a:focus-visible { outline-offset: -3px; }
.discovery-page .discovery-tools { scroll-margin-top: 100px; }
.discovery-toggle[hidden] + .discovery-fields { padding-top: 16px; }

.discovery-page .continue-strip {
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 13px;
}
.discovery-page .continue-strip:hover { border-color: #f4be7055; }
.discovery-page .continue-symbol { flex-basis: 32px; height: 32px; }
.discovery-page .continue-symbol .ui-icon { width: 17px; height: 17px; }
.discovery-page .continue-action { flex-shrink: 1; text-align: right; }

.discovery-page .featured-story {
  min-height: 196px;
  padding: 20px 26px;
  border-radius: 14px;
  background: #1e1c1b;
  scroll-margin-top: 104px;
}
.discovery-page .featured-story::after {
  background: linear-gradient(90deg, #191716 6%, #191716f2 33%, #1917168a 65%, #1917161a),
              linear-gradient(0deg, #131112b3, transparent 65%);
}
.discovery-page .featured-art { width: 59%; }
.discovery-feature-label { margin: 0; color: var(--accent); font-size: 12px; font-weight: 600; }
.discovery-page .featured-copy h2 { margin: 6px 0; font-size: clamp(23px, 3.6vw, 36px); }
.discovery-page .featured-meta { gap: 4px 12px; margin-bottom: 12px; color: #d5cfc7; }
.discovery-page .featured-copy .ui-primary { min-height: 44px; padding: 9px 14px; font-size: 13px; }

.discovery-page .hot-series { margin: 19px 0 0; }
.discovery-page .hot-series .section-heading { margin-bottom: 9px; }
.discovery-page .hot-series-list {
  grid-template-columns: repeat(auto-fit, minmax(28%, 1fr));
  gap: 8px;
}
.discovery-page .hot-series-list li { min-width: 0; }
.discovery-page .hot-series-list a {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  height: 100%;
  min-height: 50px;
  padding: 6px 9px;
}
.hot-series-art {
  position: relative;
  display: grid;
  width: 32px;
  aspect-ratio: 3 / 4;
  align-items: end;
  overflow: hidden;
  border-radius: 4px;
  background: #332819;
}
.hot-series-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hot-series-art .hot-series-rank {
  position: relative;
  justify-self: start;
  padding: 0 4px;
  border-radius: 0 4px 0 0;
  background: #18130eeb;
  color: var(--accent);
  font-size: 11px;
  line-height: 16px;
}
.hot-series-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.4;
}

.discovery-page #catalog { margin-top: 22px; }
.discovery-page .catalog-heading { align-items: center; gap: 8px; min-height: 32px; margin-bottom: 10px; }
.discovery-page .catalog-heading .quiet-link { color: var(--accent); }
.discovery-page .poster-card {
  scroll-margin-top: 104px;
}
.discovery-page .poster-card:target .poster-cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.discovery-page .poster-card .card-copy { padding-top: 6px; }
.discovery-page .poster-card h3 { margin: 0 0 2px; }
.discovery-card-meta { color: #b3b1b2; font-size: 12px; line-height: 1.45; }
.discovery-page .poster-cover::after { display: none; }

@media (max-width: 600px) {
  .discovery-page #main-content { padding-top: 7px; }
  .discovery-page .header-inner { padding-inline: 12px; gap: 6px; }
  .discovery-page .header-nav { gap: 6px; }
  .discovery-search-trigger { padding-inline: 7px; font-size: 13px; }
  .discovery-categories { margin-bottom: 8px; }
  .discovery-categories a { min-height: 38px; max-width: 170px; padding: 7px 11px; font-size: 13px; }
  .discovery-page .discovery-filters label { min-width: 0; }
  .discovery-page .discovery-filters select { padding-right: 8px; font-size: 16px; }
  .discovery-page .discovery-filters .secondary { flex: 0 0 100%; }
  .discovery-page .discovery-tools,
  .discovery-page #catalog,
  .discovery-page .featured-story,
  .discovery-page .poster-card { scroll-margin-top: 63px; }
  .discovery-page .featured-story { min-height: 136px; padding: 10px 14px; }
  .discovery-page .featured-copy { width: 78%; }
  .discovery-page .featured-art { width: 73%; }
  .discovery-page .featured-art .poster-monogram { padding-left: 26%; font-size: 75px; }
  .discovery-page .featured-copy h2 { margin: 2px 0 3px; }
  .discovery-page .featured-meta { margin-bottom: 5px; }
  .discovery-page .hot-series { margin-top: 12px; }
  .discovery-page .hot-series-list a { grid-template-columns: 25px minmax(0, 1fr); gap: 5px; padding: 5px; }
  .hot-series-art { width: 25px; }
  .hot-series-name { font-size: 12px; }
  .discovery-page #catalog { margin-top: 14px; }
  .discovery-page .poster-grid { gap: 14px 10px; }
  .discovery-card-meta { font-size: 11px; }
}
@media (max-width: 360px) {
  .discovery-search-trigger { width: 40px; justify-content: center; }
  .discovery-search-trigger > span { display: none; }
}
