/* Cover cards inside the native feed; site configuration owns all visual tokens. */
.uch-layout-tools{display:flex;justify-content:flex-end;margin-block:10px}
.uch-layout-tools[hidden]{display:none}
html:root body .ls-post-list.uch-native-layout[data-uch-platform]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px!important;align-items:start;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
html:root body .ls-post-list.uch-native-layout[data-uch-platform]>.ls-post-item{min-width:0;background:var(--ls-bg-card,var(--ls-card-bg))!important;border:0!important;border-radius:var(--umb-card-radius,var(--ueng-surface-radius,var(--ls-radius)))!important;padding:0!important;margin:0!important;overflow:hidden;box-sizing:border-box}
.ls-post-list.uch-native-layout>.ls-post-item>.uch-tile{display:block}
html:root body .ls-post-list.uch-native-layout>.ls-post-item.uch-cover-item>:not(.uch-tile){display:none!important}
.ls-post-list:not(.uch-native-layout) .uch-tile{display:none}
.uch-tile a{color:inherit;text-decoration:none}
.uch-tile .uch-tile-cover{display:block;position:relative;overflow:hidden;background:var(--ls-bg-secondary,var(--ls-bg-body));isolation:isolate}
.uch-tile-image{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover}
.uch-tile-fallback{height:100%;display:flex;flex-direction:column;color:var(--ls-text-secondary)}
.uch-tile-fallback[hidden]{display:none}
.uch-tile-kind{font-size:12px;opacity:.7}
.uch-tile-excerpt{font-size:15px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.uch-tile-stats{position:absolute;inset:auto 0 0;display:flex;padding:24px 10px 8px;background:linear-gradient(transparent,#0009);color:#fff;font-size:11px;pointer-events:none}
.uch-tile-copy{padding:10px 12px 12px}
.uch-tile .uch-tile-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.55;height:44px;font-weight:500;overflow-wrap:anywhere}
.uch-tile .uch-tile-author{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:var(--ls-text-secondary)}
.uch-tile-author>span{}
.uch-tile-author>img{width:18px;height:18px;object-fit:cover;border-radius:var(--ls-border-radius-avatar,var(--ls-radius-round,50%));flex-shrink:0}
html:root body .ls-post-list.uch-native-layout[data-uch-platform="mobile"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px!important}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-copy{padding:8px 9px 10px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-title{font-size:13px;line-height:1.55;height:41px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-author{font-size:11px}
@media(max-width:700px){html:root body .ls-post-list.uch-native-layout[data-uch-platform="pc"]{grid-template-columns:repeat(2,minmax(0,1fr))}}
.uch-tile-lock{position:absolute;right:8px;top:8px;color:var(--ls-text-secondary);pointer-events:none}

.ls-post-list.uch-native-layout>:not(.uch-cover-item){grid-column:1/-1}

/* Native icon font, with a stable contrast plate above every cover. */
.uch-tile .remix-icon{font-size:15px;line-height:1;flex-shrink:0}
.uch-tile-marks{position:absolute;inset:8px 8px auto;display:flex;align-items:center;pointer-events:none;z-index:2}
.uch-tile-marks>span{display:inline-flex;align-items:center;gap:4px;background:var(--ls-bg-card,var(--ls-card-bg));color:var(--ls-text-primary,var(--ls-text));border:1px solid var(--ls-border);border-radius:var(--ls-radius-sm);line-height:1.2}
.uch-tile-marks>.uch-lock-badge{margin-left:auto}
.uch-type-label,.uch-tile-kind{display:inline-flex;align-items:center;gap:5px}
.uch-tile-stats>span{display:inline-flex;align-items:center;gap:4px}
.uch-tile-fallback{box-sizing:border-box;padding:18px 16px 30px;justify-content:center;gap:9px;background:linear-gradient(135deg,var(--ls-bg-secondary),var(--ls-bg-card,var(--ls-card-bg)));position:relative}
.uch-tile-fallback:after{content:'';position:absolute;pointer-events:none}
.uch-tile-fallback .uch-tile-kind{font-size:11px;opacity:.7}
.uch-tile-fallback .uch-tile-excerpt{position:relative;z-index:1;color:var(--ls-text-primary,var(--ls-text))}
.uch-tile:not(.uch-has-image) .uch-tile-stats{background:none;color:var(--ls-text-secondary);padding:8px 10px}
.uch-tile:not(.uch-has-image):has(.uch-tile-marks>:not(.uch-lock-badge)) .uch-tile-kind{visibility:hidden}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-fallback{padding:14px 12px 27px;gap:6px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-fallback .uch-tile-excerpt{}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-marks{inset:6px 6px auto}

/* Media identity and compact native actions. Existing glass/motion tokens are reused. */
.uch-media-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--ueng-glass-bg,var(--ls-bg-card));color:var(--ls-text-primary,var(--ls-text));border:1px solid var(--ls-border);backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)));-webkit-backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)));pointer-events:none;z-index:2}
.uch-media-center .remix-icon{font-size:24px}
.uch-tile-stats{justify-content:flex-start;gap:10px}
.uch-tile-stats .uch-stat{font-size:11px;gap:3px;white-space:nowrap}
.uch-tile-stats .remix-icon{font-size:13px}
.uch-author-row{display:flex;align-items:center;gap:4px;margin-top:8px;min-width:0}
.uch-tile .uch-author-row .uch-tile-author{flex:1;min-width:0;margin-top:0}
.uch-author-row :is(.uch-download,.uch-more){position:static!important;display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;margin:0;padding:0;border:0;background:transparent;color:var(--ls-text-secondary);cursor:pointer;border-radius:var(--ls-radius-sm)}
.uch-author-row .uch-more .remix-icon{font-size:19px}
.uch-author-row :is(.uch-download,.uch-more):hover{background:var(--ls-bg-hover,var(--ls-bg-secondary));color:var(--ls-text-primary)}
.uch-author-row :is(.uch-download,.uch-more):focus-visible{outline:2px solid var(--ls-primary);outline-offset:2px}
.uch-tile[data-kind="music"]:not(.uch-has-image) .uch-tile-excerpt,.uch-tile[data-kind="video"]:not(.uch-has-image) .uch-tile-excerpt,.uch-tile[data-kind="voice"]:not(.uch-has-image) .uch-tile-excerpt{visibility:hidden}
.uch-native-layout[data-uch-platform="mobile"] .uch-media-center{width:38px;height:38px}
.uch-native-layout[data-uch-platform="mobile"] .uch-media-center .remix-icon{font-size:21px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-stats{gap:8px}
.uch-native-layout[data-uch-platform="mobile"] .uch-author-row{gap:2px}
.uch-native-layout[data-uch-platform="mobile"] .uch-author-row :is(.uch-download,.uch-more){flex-basis:26px;width:26px;height:28px}

.uch-tile .uch-author-row .uch-more{margin:0!important;min-width:0!important;min-height:0!important;height:28px!important;padding:0!important}

/* Translucent plates expose the blurred cover, without changing host blur strength. */
.uch-media-center,.uch-tile-marks>span{background:color-mix(in srgb,var(--ls-bg-card,var(--ls-card-bg)) 38%,transparent);backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)));-webkit-backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)));border-color:color-mix(in srgb,var(--ls-border) 65%,transparent)}
.uch-has-image .uch-media-center,.uch-has-image .uch-tile-marks>span{background:rgb(15 20 28 / 28%);color:#fff;border-color:rgb(255 255 255 / 22%);text-shadow:0 1px 3px #0006}
.uch-tile-marks{gap:4px}
.uch-tile-marks>span{font-size:10px;padding:4px 5px;max-width:100%;box-sizing:border-box}
.uch-tile-marks>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uch-tile-fallback .uch-tile-kind{visibility:hidden}
.uch-tile-fallback{padding-top:32px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-fallback{padding-top:30px}

/* Stable cover geometry: text never contributes to the aspect-ratio height. */
.uch-tile .uch-tile-cover{height:auto;min-height:0;aspect-ratio:16/10}
.uch-tile .uch-tile-fallback{position:absolute;inset:0;height:auto;gap:0;justify-content:center}
.uch-tile-fallback:after{inset:12px;border:1px solid color-mix(in srgb,var(--ls-border) 45%,transparent);border-radius:inherit;background:none;opacity:.55}
.uch-tile-fallback .uch-tile-kind{display:none}
.uch-tile-fallback .uch-tile-excerpt{font-weight:500;font-size:16px;line-height:1.65;letter-spacing:.02em;-webkit-line-clamp:3}
.uch-tile .uch-lock-badge{position:absolute;top:8px;right:8px;z-index:3;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid var(--ls-border);border-radius:var(--ls-radius-sm);background:color-mix(in srgb,var(--ls-bg-card,var(--ls-card-bg)) 38%,transparent);color:var(--ls-text-primary,var(--ls-text));backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)));-webkit-backdrop-filter:var(--ueng-glass-filter,blur(var(--umb-blur-amount,0px)))}
.uch-has-image .uch-lock-badge{background:rgb(15 20 28 / 28%);color:#fff;border-color:rgb(255 255 255 / 22%)}
.uch-tile-cover:has(.uch-lock-badge) .uch-tile-marks{}
.uch-tile-marks{flex-wrap:nowrap;overflow:hidden}
.uch-tile-copy{display:flex;flex-direction:column}
.uch-author-row{}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-fallback{}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-fallback .uch-tile-excerpt{font-size:13px;line-height:1.6;-webkit-line-clamp:2}
.uch-native-layout[data-uch-platform="mobile"] .uch-lock-badge{top:6px;right:6px;width:24px;height:24px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-cover:has(.uch-lock-badge) .uch-tile-marks{}
.uch-unlock-options{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
/* Permission cards are full-width rows inside this modal, not feed-sized tiles. */
.uch-unlock-options>.ls-power-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;width:100%;max-width:none;min-width:0;box-sizing:border-box}
.uch-unlock-options .ls-power-card-text{min-width:0;overflow-wrap:anywhere}
.uch-unlock-options .ls-power-card-btn{justify-self:end;margin-inline-start:0}
.uch-unlock-options .ls-power-card-quota{grid-column:1/-1}

/* Shared host shape tokens, larger author controls and a typographic text cover. */
.uch-tile{--uch-control-radius:var(--umb-control-radius,var(--ueng-surface-radius,var(--ls-radius)))}
.uch-tile .uch-tile-marks>span,.uch-tile .uch-lock-badge,.uch-author-row :is(.uch-download,.uch-more){border-radius:var(--uch-control-radius)}
.uch-tile .uch-tile-author>img{width:26px;height:26px}
.uch-tile .uch-author-row :is(.uch-download,.uch-more){flex:0 0 32px;width:32px;height:34px!important;min-width:0!important;margin:0!important}
.uch-tile .uch-author-row :is(.uch-download,.uch-more) .remix-icon{font-size:21px}
.uch-author-row{min-height:34px}
.uch-tile .uch-tile-stats{}
.uch-tile .uch-tile-stats .uch-stat{font-variant-numeric:tabular-nums}
.uch-tile .uch-tile-fallback{background:color-mix(in srgb,var(--ls-bg-card,var(--ls-card-bg)) 90%,var(--ls-primary,#7889a2))}
.uch-tile-fallback:after{display:none}
.uch-tile-fallback:before{content:'“';position:absolute;right:12px;bottom:15px;font:100px/1 Georgia,serif;color:var(--ls-text-secondary);opacity:.08;pointer-events:none}
.uch-tile .uch-tile-fallback .uch-tile-excerpt{-webkit-line-clamp:3;text-wrap:pretty}
.uch-text-summary{display:none}
.uch-no-cover:not([data-kind="music"]):not([data-kind="video"]):not([data-kind="voice"]) .uch-tile-title{display:none}
.uch-no-cover:not([data-kind="music"]):not([data-kind="video"]):not([data-kind="voice"]) .uch-text-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:44px;line-height:1.55;overflow:hidden;font-size:13px;color:var(--ls-text-secondary);overflow-wrap:anywhere}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-fallback{}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-fallback .uch-tile-excerpt{-webkit-line-clamp:2}
.uch-native-layout[data-uch-platform="mobile"] .uch-text-summary{height:41px!important;font-size:12px!important}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-author>img{width:24px;height:24px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-author-row :is(.uch-download,.uch-more){flex-basis:30px;width:30px}
.ls-modal-mask.uch-unlock-modal{backdrop-filter:var(--umb-filter,blur(var(--umb-blur-amount,0px)));-webkit-backdrop-filter:var(--umb-filter,blur(var(--umb-blur-amount,0px)))}

/* Local content polish; all host geometry and motion tokens remain unchanged. */
.uch-file-options{display:grid;gap:12px;min-width:0}
.uch-file-option.ls-btn{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;text-align:start;white-space:normal;width:100%;min-height:44px}
.uch-file-option>span{overflow-wrap:anywhere;min-width:0}
.uch-tile-author>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.uch-tile-author img{flex-shrink:0;object-fit:cover}
.uch-tile .uch-tile-stats{row-gap:2px}
.uch-tile .uch-stat{white-space:nowrap;min-width:0}
.uch-tile .uch-author-row :is(.uch-download,.uch-more){position:relative!important}
.uch-tile .uch-author-row :is(.uch-download,.uch-more)::after{content:'';position:absolute;inset:-5px -2px}
.uch-tile a:focus-visible,.uch-tile button:focus-visible{outline:2px solid var(--ls-primary);outline-offset:2px}

.uch-stat[data-stat="views"]{order:0}
.uch-stat[data-stat="likes"]{order:1}
.uch-stat[data-stat="downloads"]{order:2}

.uch-file-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.uch-file-meta{font-size:12px;color:var(--ls-text-secondary);font-weight:400;overflow-wrap:anywhere}
.uch-tile .uch-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;background:var(--ls-bg-secondary);color:var(--ls-text-secondary);border-radius:var(--ls-border-radius-avatar,var(--ls-radius-round,50%))}
.uch-tile .uch-avatar-fallback[hidden],.uch-tile-author img[hidden]{display:none}
.uch-native-layout[data-uch-platform="mobile"] .uch-avatar-fallback{flex-basis:24px;width:24px;height:24px}
.uch-tile .uch-tile-stats{flex-wrap:nowrap;gap:clamp(3px,1vw,9px);max-width:100%;box-sizing:border-box}
.uch-tile .uch-tile-stats .uch-stat{overflow:hidden;flex-shrink:1}
.uch-stat>span{overflow:hidden;text-overflow:ellipsis}

/* 0.8.8: readable cover information on both platforms; host geometry is retained. */
.uch-tile .uch-tile-marks .remix-icon,.uch-tile .uch-lock-badge .remix-icon{font-size:18px}
.uch-tile .uch-tile-marks>span{font-size:11px;padding:4px 6px;min-height:28px}
.uch-tile .uch-lock-badge{width:30px;height:30px}
.uch-tile-cover:has(.uch-lock-badge) .uch-tile-marks{right:44px}
.uch-tile .uch-media-center{width:48px;height:48px}
.uch-tile .uch-media-center .remix-icon{font-size:27px}
.uch-tile .uch-tile-stats .remix-icon{font-size:16px}
.uch-tile .uch-tile-stats .uch-stat{font-size:12px;gap:4px}
.uch-tile .uch-tile-fallback{padding:42px 16px 32px}
.uch-tile .uch-tile-fallback .uch-tile-excerpt{font-size:16px;font-weight:550;line-height:1.65;letter-spacing:0;overflow-wrap:anywhere}
.uch-tile .uch-author-row{margin-top:4px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-media-center{width:42px;height:42px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-media-center .remix-icon{font-size:24px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-marks>span{padding:3px 5px;font-size:10px;min-height:26px;gap:3px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-marks .remix-icon,.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-lock-badge .remix-icon{font-size:17px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-lock-badge{width:28px;height:28px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile-cover:has(.uch-lock-badge) .uch-tile-marks{right:40px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-stats .uch-stat{font-size:11px;gap:3px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-stats .remix-icon{font-size:15px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-fallback{padding:37px 12px 29px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-tile-fallback .uch-tile-excerpt{font-size:14px;line-height:1.6}
/* Cover contrast must not depend on an asynchronous load class. */
.uch-tile:has(.uch-tile-image) .uch-tile-stats{background:linear-gradient(transparent,rgb(0 0 0 / 70%));color:#fff;text-shadow:0 1px 2px #0008}
.uch-tile:not(:has(.uch-tile-image)):not([data-kind="music"]):not([data-kind="video"]):not([data-kind="voice"]) .uch-tile-title{display:none}
.uch-tile:not(:has(.uch-tile-image)):not([data-kind="music"]):not([data-kind="video"]):not([data-kind="voice"]) .uch-text-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;height:44px;line-height:1.55;overflow:hidden;font-size:13px;color:var(--ls-text-secondary);overflow-wrap:anywhere}

/* Keep mobile action targets distinct without taking more space from the author. */
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-author-row{gap:4px;min-height:44px}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-author-row :is(.uch-download,.uch-more){height:44px!important}
.uch-native-layout[data-uch-platform="mobile"] .uch-tile .uch-author-row :is(.uch-download,.uch-more)::after{inset:0 -1px}
