@charset "UTF-8";
.d-main { max-width: 1260px; padding-top: 0; }
.d-toolbar { position: sticky; top: 0; z-index: 20; padding: 24px 0 28px; background: var(--theme-surface,#fff); }
.d-toolbar-inner { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; }
.d-back { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; min-width: 48px; min-height: 48px; flex: 0 0 48px; padding: 0; border: 0; background: transparent; color: var(--theme-ink,#191d22); border-radius: 50%; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.d-back:hover { background-color: var(--theme-soft,#f3f4f5); }
.d-back:active { background-color: var(--theme-line,#e5e8ec); }
.d-back .ui-icon { width: 22px; height: 22px; }
.d-search { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; height: 48px; padding: 0 16px; border-radius: 28px; background: var(--theme-soft,#f3f4f5); }
.d-search > .ui-icon { color: var(--theme-muted,#8d939b); width: 20px; height: 20px; flex: 0 0 20px; }
.d-search input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: none; color: var(--theme-ink,#191d22); font: inherit; font-size: calc(15px * var(--app-font-scale, 1)); }
.d-search input::-webkit-search-cancel-button { display: none; }
.d-search:focus-within { box-shadow: 0 0 0 2px #e1e4e8; }
.d-search input::placeholder { color: var(--theme-muted,#90969f); }
.d-clear { width: 26px; height: 26px; min-height: 26px; flex: 0 0 26px; color: var(--theme-muted,#8d939b); }
.d-clear .ui-icon { width: 15px; height: 15px; }
.d-hash { border: 0; border-radius: 50%; width: 30px; height: 30px; flex: 0 0 30px; background: transparent; color: var(--theme-muted,#8d939b); font-size: calc(22px * var(--app-font-scale, 1)); cursor: pointer; }
.d-hash:hover, .d-hash[aria-pressed="true"] { color: var(--theme-ink,#191d22); background: var(--app-line); }
.d-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
.d-tile { position: relative; display: block; min-width: 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--theme-soft,#f1f2f4); }
.d-tile > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.d-tile:hover > img { transform: scale(1.025); }
.d-tile:focus-visible { outline: 3px solid var(--app-accent); outline-offset: -3px; }
.d-tile-copy { display: flex; flex-direction: column; justify-content: center; gap: 18px; height: 100%; padding: 24px; background: var(--theme-soft,#f3f2ef); color: var(--theme-ink,#41403d); }
.d-tile:nth-child(3n+2) .d-tile-copy { background: var(--theme-soft,#eef2f1); }
.d-tile:nth-child(3n) .d-tile-copy { background: var(--theme-soft,#eff0f4); }
.d-tile-copy strong { font-size: calc(11px * var(--app-font-scale, 1)); font-weight: 600; color: var(--theme-muted,#8d8e8e); }
.d-tile-copy p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 7; overflow: hidden; margin: 0; font-size: calc(19px * var(--app-font-scale, 1)); line-height: 1.6; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-tile-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 20px; color: white; background: linear-gradient(transparent 45%,#0009); opacity: 0; transition: opacity .2s; pointer-events: none; }
.d-tile:hover .d-tile-overlay, .d-tile:focus-visible .d-tile-overlay { opacity: 1; }
.d-tile-overlay strong { font-size: calc(13px * var(--app-font-scale, 1)); }
.d-tile-overlay p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: calc(12px * var(--app-font-scale, 1)); line-height: 1.5; overflow-wrap: anywhere; }
.d-tile-stack { position: absolute; top: 12px; right: 12px; color: white; filter: drop-shadow(0 1px 3px #0006); }
.d-tile-stack .ui-icon { width: 20px; height: 20px; }
.d-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 16px; }
.d-section-title h2 { margin: 0; font-size: calc(18px * var(--app-font-scale, 1)); overflow-wrap: anywhere; }
.d-section-title > span { color: var(--theme-muted,#8a9199); font-size: calc(12px * var(--app-font-scale, 1)); white-space: nowrap; }
.d-people-section, .d-tags-section { max-width: 760px; margin: 0 auto 36px; }
.d-people-section h2 { margin: 0 0 10px; font-size: calc(14px * var(--app-font-scale, 1)); color: var(--theme-muted,#9398a0); font-weight: 500; }
.d-people, .d-tags { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.d-person, .d-tag { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 10px 12px; border-radius: 12px; }
.d-person:hover, .d-tag:hover { background: var(--app-soft); }
.d-avatar, .d-tag-mark { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--theme-soft,#f0f2f4); color: var(--theme-muted,#939aa2); }
.d-avatar img { width: 100%; height: 100%; object-fit: cover; }
.d-tag-mark { background: none; border: 1px solid var(--theme-line,#dfe2e7); color: var(--theme-ink,#191d22); font-size: calc(28px * var(--app-font-scale, 1)); }
.d-result-copy { display: grid; gap: 4px; min-width: 0; }
.d-result-copy strong { font-size: calc(15px * var(--app-font-scale, 1)); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-result-copy > span { color: var(--theme-muted,#8b929c); font-size: calc(13px * var(--app-font-scale, 1)); }
.d-note { color: var(--theme-muted,#9097a0); font-size: calc(13px * var(--app-font-scale, 1)); padding: 0 12px; }
.d-status { margin: 28px auto 16px; text-align: center; font-size: calc(13px * var(--app-font-scale, 1)); line-height: 1.8; color: var(--theme-muted,#9299a2); }
.d-more { display: block; margin: 0 auto; }
#discover-sentinel { height: 1px; }
@media (max-width:1100px) { .d-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) {
    .discover-app .app-mobile-header { display: none !important; }
    .d-main { padding: 0 4px 100px; }
    .d-toolbar { position: sticky; top: 0; z-index: 50; padding: max(10px, env(safe-area-inset-top, 10px)) 12px 10px; background: var(--theme-surface,#fff); border-bottom: 1px solid var(--theme-line,#f0f2f4); }
    .d-toolbar-inner { gap: 6px; }
    .d-back { width: 44px; height: 44px; min-width: 44px; min-height: 44px; flex: 0 0 44px; }
    .d-back .ui-icon { width: 22px; height: 22px; }
    .d-search { padding: 0 14px; gap: 8px; height: 44px; }
    .d-search input { font-size: calc(16px * var(--app-font-scale, 1)); }
    .d-hash { width: 26px; flex-basis: 26px; }
    .d-grid { gap: 3px; }
    .d-tile-copy { padding: 12px; gap: 10px; }
    .d-tile-copy strong { font-size: calc(9px * var(--app-font-scale, 1)); }
    .d-tile-copy p { font-size: calc(12px * var(--app-font-scale, 1)); line-height: 1.5; -webkit-line-clamp: 6; }
    .d-tile-overlay { padding: 10px; }
    .d-tile-stack { top: 7px; right: 7px; }
    .d-tile-stack .ui-icon { width: 16px; height: 16px; }
    .d-section-title { margin: 22px 16px 14px; }
    .d-people-section, .d-tags-section { margin: 0 8px 24px; }
    .d-people-section h2 { margin-left: 12px; }
    .d-person, .d-tag { min-height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .d-tile > img, .d-tile-overlay { transition: none; } }

.d-tile-overlay .ui-identity-name {color:#fff}
.d-tile-overlay .ui-identity-nickname {color:#ffffffb3}
.d-tile-copy .ui-identity {max-width:100%}
