.discoverPage .homeVideoGrid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:16px;align-items:start;
}
.templateDiscovery .templateMasonry {align-items:start}
body .discoverPage .homeVideoCard,body .templateDiscovery .templateMarketCard {
  display:flex;flex-direction:column;align-self:start;min-width:0;width:100%;height:auto;aspect-ratio:auto;
  margin:0;padding:6px;border:0;border-radius:16px;background:#f6f6f6;color:#181818;box-shadow:none;
  text-align:left;overflow:hidden;cursor:pointer;
}
body .templateDiscovery .templateMarketCard[hidden] {display:none}
body .discoverPage .homeVideoCard:hover,body .templateDiscovery .templateMarketCard:hover {
  background:#efefef;box-shadow:none;transform:none;
}
body .caseMedia {
  display:block;position:relative;isolation:isolate;flex:none;width:100%;height:auto;max-height:none;
  aspect-ratio:var(--case-ratio,1);overflow:hidden;border-radius:11px;background:#eaeaea;
}
body .caseMedia::after {display:none}
body .caseMedia img,body .caseMedia video {
  position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:transparent;
}
body .caseMedia img+video {opacity:0}
body .caseMedia[data-playing] video {opacity:1}
.casePlayMark {
  position:absolute;left:9px;bottom:9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-width:25px;height:24px;padding:0 8px;border:1px solid rgb(255 255 255 / 70%);border-radius:8px;
  background:rgb(255 255 255 / 89%);color:#342442;box-shadow:0 1px 5px #21162d24;
  backdrop-filter:blur(8px);pointer-events:none;
}
.casePlayMark::before {content:"";width:9px;height:10px;background:#633196;clip-path:polygon(12% 0,100% 50%,12% 100%)}
.caseDuration {font:650 11px/1 var(--ui-font,system-ui);font-variant-numeric:tabular-nums}
.caseDuration:empty {display:none}
.caseMedia[data-playing] .casePlayMark {opacity:0}
@media(prefers-reduced-motion:no-preference){.casePlayMark {transition:opacity 140ms ease}}
body .homeVideoBody,body .templateCardText {box-sizing:border-box;width:100%;padding:8px 5px 5px;min-height:0;gap:3px;background:transparent}
body .homeVideoCaption {gap:3px}
body .homeVideoCaption strong,body .templateCardText strong {margin:0;color:#181818;font-size:14px;font-weight:650;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
body .homeVideoCaption small,body .templateCardText small,body .templateCardText span {min-height:0;color:#565656;font-size:12px;line-height:1.4}
.discoveryVideoDialog{width:min(900px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}
.discoveryVideoViewer video{display:block;width:100%;max-height:70dvh;object-fit:contain;background:#f4f5f7;border-radius:10px}
.discoveryVideoInfo{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;font-size:12px;color:#727b88}
.discoveryVideoInfo,.discoveryVideoActions{flex-wrap:wrap}
.discoveryVideoActions{display:flex;align-items:center;gap:8px}
.caseCloneNotice:not([hidden]){margin:8px 0 0;font-size:13px;line-height:1.5;color:#495363}
@media(max-width:767px) {
  .discoverPage .homeVideoGrid,.templateDiscovery .templateMasonry {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  body .discoverPage .homeVideoCard,body .templateDiscovery .templateMarketCard {padding:4px;border-radius:12px}
  body .caseMedia {border-radius:9px}
}
