/* /explore: the public feed. Builds on workflows.css (chips, masonry grid, card motion). Transforms and opacity
   only; site.css switches every animation off for reduced motion. */

.ex-hero p { max-width: 460px; }
.ex-bar { position: sticky; top: var(--nav-h); z-index: 20; display: flex; align-items: center; gap: 12px; margin: 0 0 14px; background: linear-gradient(#0b0b0d 78%, rgba(11, 11, 13, 0)); }
.ex-bar .ex-chips { position: static; flex: 1 1 auto; min-width: 0; margin: 0; background: none; }
.ex-sort { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.ex-sort-btn { border: 0; background: transparent; color: #d9d9dd; border-radius: 999px; padding: 7px 14px; font: 500 14px/1 var(--ui); cursor: pointer; transition: background-color .2s, color .2s; }
.ex-sort-btn[aria-pressed="true"] { background: var(--text); color: #0b0b0c; }
.ex-status { color: var(--muted); margin: 8px 0 18px; }
.ex-status[hidden] { display: none; }

.ex-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.ex-tool {
  position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(11, 11, 13, .62);
  color: #f4f4f1; font-size: 11px; font-weight: 600; letter-spacing: .02em; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.ex-name { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 10px; display: flex; flex-direction: column; gap: 2px; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.ex-title { font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ex-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #d4d4d8; }
.ex-author { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-likes { flex: none; }
.ex-card:is(:hover, :focus-visible) .ex-tool { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .ex-bar { gap: 8px; }
  .ex-sort-btn { padding: 7px 11px; font-size: 13px; }
  .ex-name { left: 9px; right: 9px; bottom: 8px; }
  .ex-title { font-size: 13px; }
  .ex-meta { font-size: 11px; }
}
.ex-more { display: flex; justify-content: center; margin: 26px 0 0; }
.ex-how { margin: 40px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.ex-how a { color: var(--text); }
.ex-link { border: 0; background: none; padding: 0; color: var(--text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- detail sheet ---------- */
.ex-sheet {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--surface); color: var(--text); box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .85); overflow: auto;
}
.ex-sheet::backdrop { background: rgba(5, 5, 7, .78); backdrop-filter: blur(6px); }
.ex-sheet[open] { animation: ex-rise .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes ex-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.ex-sheet-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); min-height: 420px; }
.ex-sheet-media { display: grid; place-items: center; background: #050506; min-height: 300px; }
.ex-sheet-media img, .ex-sheet-media video { display: block; width: 100%; height: 100%; max-height: calc(100dvh - 34px); object-fit: contain; }
.ex-wait { color: var(--muted); }
.ex-sheet-side { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; min-width: 0; }
.ex-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ex-sheet-tool { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ex-x { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ex-sheet h2 { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ex-sheet-by, .ex-sheet-stats { margin: 0; color: var(--muted); font-size: 14px; }
.ex-sheet-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ex-sheet-tags:empty { display: none; }
.ex-tag { font-size: 13px; color: #d4d4d8; background: var(--surface-2); border-radius: 999px; padding: 3px 10px; }
.ex-sheet-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ex-remix { min-height: 44px; padding: 0 18px; font-size: 15px; }
.ex-like { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.ex-like svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.ex-like[aria-pressed="true"] { color: #ff6b81; border-color: rgba(255, 107, 129, .5); }
.ex-like[aria-pressed="true"] svg { fill: currentColor; transform: scale(1.08); }
.ex-sheet-msg { margin: 0; min-height: 1.3em; font-size: 14px; color: var(--muted); }
.ex-sheet-msg[data-kind="error"] { color: #ff8a7a; }
.ex-sheet-foot { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: 14px; }
.ex-sheet-foot .ex-link { color: var(--muted); }
.ex-sheet-foot .ex-danger { color: #ff8a7a; }
.ex-report { display: grid; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.ex-report[hidden] { display: none; }
.ex-report fieldset { border: 0; padding: 0; margin: 0; }
.ex-report legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.ex-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.hub .ex-reasons label { margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text); cursor: pointer; }
.hub .ex-reasons input { margin: 0; accent-color: var(--accent); }
.ex-reasons label:has(input:checked) { border-color: var(--accent); }
.hub .ex-report > label { margin: 4px 0 0; font-size: 13px; }
.hub .ex-report textarea { margin-top: 0; max-width: none; min-height: 70px; }
.ex-report-acts { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 760px) {
  .ex-sheet { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 16px; }
  .ex-sheet-in { grid-template-columns: 1fr; min-height: 0; }
  .ex-sheet-media { min-height: 200px; }
  .ex-sheet-media img, .ex-sheet-media video { max-height: 56dvh; }
  .ex-sheet-side { padding: 14px 16px 16px; }
}
