/* Shared browse hierarchy and trending tags, loaded after legacy page styles. */
.platform-shell .discovery-layout .discovery-unified-header {
 border-bottom:0;padding-bottom:12px;margin-bottom:5px;
}
.platform-shell .discovery-layout .discovery-unified-filters {
 border-bottom:0;padding-top:6px;padding-bottom:12px;
}
.platform-shell .discovery-layout .discovery-unified-list-heading {
 justify-content:flex-end;flex-wrap:nowrap;align-items:center;
 margin:5px 0 10px;padding:4px 0 12px;border-bottom:1px solid var(--ui-line);
}
.platform-shell .discovery-layout .discovery-list-controls {
 display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;
 gap:10px;width:auto;min-width:0;
}
/* Native selects remain keyboard-friendly while sharing a small button silhouette. */
.platform-shell .discovery-layout .discovery-list-controls>select,
.cohesive-pages-shell .tag-results-controls>select {
 appearance:none;-webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%236e697b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.7'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 8px center;background-size:14px 14px;
 min-height:36px;max-width:none;border-radius:8px;padding:7px 26px 7px 10px;
 font:550 12px/1.4 var(--sans);white-space:nowrap;cursor:pointer;
}
.platform-shell .discovery-layout .discovery-list-controls>select[data-action="discovery-status"],
.cohesive-pages-shell .tag-results-controls>select[data-action="status-filter"] {
 background-color:#f4f3f7;border:1px solid transparent;color:#4e4b58;
}
.platform-shell .discovery-layout .discovery-list-controls>select[data-action="discovery-sort"],
.cohesive-pages-shell .tag-results-controls>select[data-action="explore-sort"] {
 background-color:transparent;border:1px solid transparent;color:#736e7d;
}
.platform-shell .discovery-layout .discovery-list-controls>select:focus-visible,
.cohesive-pages-shell .tag-results-controls>select:focus-visible {
 outline:2px solid var(--ui-purple);outline-offset:2px;
}
/* Both post and series timestamps sit beneath the author name. */
.platform-shell :is(.feed-card.post-card,.feed-card.novel-card,.discovery-post,.discovery-novel) .content-author>.content-author-identity {
 flex:1;min-width:0;display:flex;align-items:center;gap:10px;
}
.platform-shell :is(.feed-card.post-card,.feed-card.novel-card,.discovery-post,.discovery-novel) .content-author-details {
 min-width:0;display:flex;flex-direction:column;gap:2px;justify-content:center;line-height:1.4;
}
.platform-shell :is(.feed-card.post-card,.feed-card.novel-card,.discovery-post,.discovery-novel) .content-author-details>strong {
 display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.platform-shell :is(.feed-card.post-card,.feed-card.novel-card,.discovery-post,.discovery-novel) .content-author-details>time {
 display:block;font:400 11px/1.5 var(--sans);color:#96929f;white-space:nowrap;
}
.platform-shell :is(.feed-card.post-card,.feed-card.novel-card,.discovery-post,.discovery-novel) .content-author>:is(.feed-follow,.feed-edit) {
 margin-left:auto;flex:none;
}
/* Tag Explore: one editorial section, then one controls-to-feed separator. */
.cohesive-pages-shell .tag-explore-heading {
 border:0;padding-bottom:0;margin-bottom:17px;
}
.cohesive-pages-shell .tag-explore-heading form {margin-top:17px}
.cohesive-pages-shell .tag-explore-tags {
 border:0;padding:0;margin:0 0 17px;
}
.cohesive-pages-shell .popular-tags-heading {
 display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px;
}
.cohesive-pages-shell .popular-tags-heading h2 {margin:0;color:var(--ui-ink);font-size:15px}
.cohesive-pages-shell .tag-clear {
 display:inline-flex;align-items:center;gap:4px;color:#777286;font-size:11px;white-space:nowrap;
}
.cohesive-pages-shell .tag-explore-layout {margin-top:6px}
.cohesive-pages-shell .tag-explore-ranking {
 margin:0;padding:0;list-style:none;display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px;
}
.cohesive-pages-shell .tag-explore-ranking li {min-width:0}
.cohesive-pages-shell .tag-explore-ranking li>a {
 display:flex;align-items:center;gap:10px;min-width:0;min-height:42px;
 padding:6px 10px;border-radius:8px;color:var(--ui-ink);
}
.cohesive-pages-shell .tag-explore-ranking li>a:hover,
.cohesive-pages-shell .tag-explore-ranking li>a.selected {background:#f4f0ff}
.cohesive-pages-shell .tag-explore-ranking .tag-rank {
 display:grid;place-items:center;flex:none;width:24px;height:24px;
 border-radius:7px;background:#f2f1f5;color:#6c6478;font-size:12px;font-weight:750;
}
.cohesive-pages-shell .tag-explore-ranking [data-rank="1"] .tag-rank,
.platform-shell .social-home .home-top-tags [data-rank="1"] .tag-rank {
 background:#8664ec;color:#fff;
}
.cohesive-pages-shell .tag-explore-ranking li strong {
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;
 font-size:13px;font-weight:600;
}
.cohesive-pages-shell .tag-results-toolbar {
 display:flex;align-items:center;justify-content:space-between;
 gap:8px;margin:0;padding:0 0 12px;border-bottom:1px solid var(--ui-line);min-width:0;
}
.cohesive-pages-shell .tag-results-toolbar>nav {
 display:flex;align-items:center;flex:0 0 auto;gap:3px;
}
.cohesive-pages-shell .tag-results-toolbar>nav>a {
 display:inline-flex;align-items:center;justify-content:center;
 padding:8px 10px;border-radius:7px;color:#777286;font-size:12px;min-height:36px;white-space:nowrap;
}
.cohesive-pages-shell .tag-results-toolbar>nav>a.selected {
 background:#f0eaff;color:#713bcb;font-weight:700;
}
.cohesive-pages-shell .tag-results-controls {
 display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0;
}
.cohesive-pages-shell .tag-result-count {margin:9px 0 2px;color:#948fa0;font-size:11px}
.cohesive-pages-shell .tag-selection-summary {margin:3px 0 10px;color:#777286;font-size:12px}
/* Up/down/new are meaningful only after a previous hourly snapshot exists. */
.tag-trend {
 display:inline-flex;align-items:center;justify-content:flex-end;flex:0 0 42px;
 white-space:nowrap;font:700 10px/1.2 var(--sans);letter-spacing:-.01em;
}
.tag-trend-up {color:#db505f}
.tag-trend-down {color:#477fbf}
.tag-trend-new {color:#7954e7}
.tag-trend-same {color:#b7b2be}
.platform-shell .social-home .home-tag-ticker {
 height:42px;overflow:hidden;position:relative;
}
.platform-shell .social-home .home-top-tags {
 display:flex;flex-direction:column;gap:0;margin:0;padding:0;
 list-style:none;overflow:visible;
}
.platform-shell .social-home .home-top-tags li {height:42px;min-width:0;flex:none}
.platform-shell .social-home .home-top-tags li>a {
 height:42px;min-height:42px;display:flex;align-items:center;gap:10px;
 padding:2px 0;border:0;border-radius:0;white-space:nowrap;
}
.platform-shell .social-home .home-top-tags li .tag-rank {
 display:grid;place-items:center;flex:none;width:24px;height:24px;
 border-radius:7px;background:#f2f1f5;color:#6c6478;font-size:12px;font-weight:750;
}
.platform-shell .social-home .home-top-tags li:nth-child(1) .tag-rank,
.platform-shell .social-home .home-top-tags li:nth-child(2) .tag-rank,
.platform-shell .social-home .home-top-tags li:nth-child(3) .tag-rank {
 background:#f2f1f5;color:#6c6478;
}
.platform-shell .social-home .home-top-tags li strong {
 flex:1;min-width:0;font-size:13px;font-weight:600;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.platform-shell .social-home .trend-ticker-track {animation:damneomeo-tag-rise 22.5s linear infinite}
.platform-shell .social-home .home-tag-ticker:hover .trend-ticker-track,
.platform-shell .social-home .home-tag-ticker:focus-within .trend-ticker-track {animation-play-state:paused}
@keyframes damneomeo-tag-rise {
 0%,14% {transform:translateY(0)}
 18%,34% {transform:translateY(-42px)}
 38%,54% {transform:translateY(-84px)}
 58%,74% {transform:translateY(-126px)}
 78%,94% {transform:translateY(-168px)}
 98%,100% {transform:translateY(-210px)}
}
@media(max-width:760px) {
 .platform-shell .discovery-layout .discovery-unified-header {border:0;margin-bottom:5px;padding-bottom:10px}
 .platform-shell .discovery-layout .discovery-unified-filters {border:0;padding:8px 0 13px}
 .platform-shell .discovery-layout .discovery-unified-list-heading {
  display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;
  gap:6px;margin:4px 0 8px;padding-bottom:10px;
 }
 .platform-shell .discovery-layout .discovery-list-controls {
  flex:0 0 auto;flex-basis:auto;width:auto;gap:7px;
 }
 .platform-shell .discovery-layout .discovery-list-controls>select,
 .cohesive-pages-shell .tag-results-controls>select {
  min-height:40px;font-size:11px;padding:7px 23px 7px 8px;
  background-size:12px;background-position:right 6px center;
 }
 .cohesive-pages-shell .tag-explore-ranking {
  display:flex;overflow-x:auto;overflow-y:hidden;gap:6px;
  scrollbar-width:none;overscroll-behavior-inline:contain;padding-bottom:5px;
 }
 .cohesive-pages-shell .tag-explore-ranking::-webkit-scrollbar {display:none}
 .cohesive-pages-shell .tag-explore-ranking li {flex:0 0 164px}
 .cohesive-pages-shell .tag-explore-ranking li>a {min-height:44px;gap:6px;padding:6px}
 .cohesive-pages-shell .tag-results-toolbar {
  gap:5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;
 }
 .cohesive-pages-shell .tag-results-toolbar::-webkit-scrollbar {display:none}
 .cohesive-pages-shell .tag-results-toolbar>nav {gap:0}
 .cohesive-pages-shell .tag-results-toolbar>nav>a {min-height:40px;padding:6px 7px;font-size:11px}
 .cohesive-pages-shell .tag-results-controls {gap:3px}
 .platform-shell .social-home .home-top-tags {display:flex;flex-direction:column;gap:0;overflow:visible;padding:0}
 .platform-shell .social-home .home-top-tags li {flex:none}
 .platform-shell .social-home .home-top-tags li>a {
  min-height:42px;height:42px;gap:9px;padding:2px 0;border:0;border-radius:0;
 }
 .platform-shell .social-home .home-top-tags li .tag-rank {width:24px;height:24px;font-size:11px}
 .platform-shell .social-home .home-top-tags li strong {font-size:13px}
}
@media(prefers-reduced-motion:reduce) {
 .platform-shell .social-home .trend-ticker-track {animation:none}
}

.platform-shell .social-home .home-tag-ticker.is-static {height:auto}
.platform-shell .social-home .home-top-tags [data-rank="1"] .tag-rank {background:#8664ec;color:#fff}
