.community-explore {
  width: min(100%, 1780px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 52px) clamp(12px, 3vw, 44px) 56px;
  color: var(--text);
}

.community-explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.community-explore-head h1 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 550;
  letter-spacing: -.045em;
}

.community-explore-head p,
.community-explore-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.ws-button.explore-publish-trigger,
.ws-video-dialog .ws-video-sidebar .explore-publish-trigger {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-width: 205px;
  min-height: 58px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--text) 14%, var(--panel)), var(--panel));
  box-shadow: inset 0 1px color-mix(in srgb, var(--text) 12%, transparent), 0 4px 10px #0004;
  color: var(--text);
  text-align: left;
}

.ws-video-sidebar .explore-publish-trigger { width: 100%; }
.ws-button.explore-publish-trigger:hover { border-color: var(--muted); }
.explore-publish-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}

.explore-publish-icon svg { width: 18px; height: 18px; }
.explore-publish-label { display: grid; gap: 3px; min-width: 0; }
.explore-publish-label strong { font-size: 13px; font-weight: 620; }
.explore-publish-label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.explore-publish-chevron { display: grid; margin-left: auto; color: var(--muted); }
.explore-publish-chevron svg { width: 15px; height: 15px; }

.community-explore-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.community-explore-tabs button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.community-explore-tabs button:hover,
.community-explore-tabs button[aria-pressed="true"] {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.community-explore-grid { position: relative; margin-top: 14px; }
.community-explore-tile {
  position: absolute;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--panel);
  cursor: pointer;
}

.community-explore-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .community-explore-tile:not(:focus-visible) video[data-explore-reveal] {
    animation: explore-video-arrival 210ms var(--ease-out, cubic-bezier(.23, 1, .32, 1)) backwards;
  }

  .community-explore-tile:not(:focus-visible) video[data-explore-reveal="1"] { animation-delay: 30ms; }
  .community-explore-tile:not(:focus-visible) video[data-explore-reveal="2"] { animation-delay: 60ms; }
}

@keyframes explore-video-arrival {
  from { opacity: .5; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.community-explore-tile:focus-visible,
.explore-library-choice:focus-visible {
  z-index: 1;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .community-explore-tile:hover { box-shadow: 0 0 0 1px var(--muted); }
}

.community-preview-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

.community-preview-status:empty,
.community-detail-note:empty { display: none; }
.community-explore-empty { padding: clamp(48px, 9vw, 88px) 12px; text-align: center; }
.community-explore-empty h2 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.025em; }
.community-explore-more { display: grid; justify-items: center; margin-top: 24px; }
.community-explore-more .ws-button { min-inline-size: 100px; }
.community-explore [hidden] { display: none !important; }
.community-explore-status { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.community-explore-status:empty,
[data-explore-publish-status]:empty,
[data-explore-remove-status]:empty { display: none; }

.community-detail-player {
  display: grid;
  min-width: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.community-detail-player video { display: block; max-width: 100%; max-height: min(66dvh, 680px); object-fit: contain; }
.community-detail-eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .09em; }
.community-detail-dialog .community-detail-creator { margin: 5px 0 16px; color: var(--text); font-size: 17px; }
.community-detail-dialog .community-detail-note { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.community-detail-dialog [data-community-action-status] { margin-top: 12px; }
.community-detail-dialog .community-reaction[aria-pressed="true"] svg { fill: currentColor; }
.community-detail-dialog [data-community-likes] { color: var(--muted); font-variant-numeric: tabular-nums; }

.ws-dialog.explore-picker-dialog { width: min(900px, calc(100vw - 24px)); }
.explore-library-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  max-height: 58dvh;
  overflow: auto;
  padding: 4px;
}

.explore-library-choice {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.explore-library-choice:hover { border-color: var(--muted); }
.explore-library-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bg); }
.explore-library-thumb video { display: block; width: 100%; height: 100%; object-fit: contain; }
.explore-library-thumb [data-picker-duration] {
  position: absolute;
  inset: auto 6px 6px auto;
  padding: 4px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  color: var(--text);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.explore-library-thumb [data-picker-duration]:empty { display: none; }
.explore-library-choice-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 53px; padding: 8px 10px; }
.explore-library-choice-label strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.explore-library-choice-label svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.explore-publish-preview p { margin: 10px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.explore-publish-layout .explore-publish-form { min-width: 0; }
.explore-publish-form > p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.explore-publish-form small { color: var(--muted); font-weight: 400; }
.explore-publish-form [data-copy-remix-prompt] { justify-self: start; }
.explore-publish-form .ws-dialog-actions { flex-wrap: wrap; }

@media (max-width: 560px) {
  .community-explore-head { align-items: flex-start; }
  .community-explore-tabs { gap: 3px; }
  .community-explore-tabs button { padding-inline: 10px; }
  .community-explore-tile { border-radius: 8px; }
  .community-detail-player video { max-height: 49dvh; }
  .explore-library-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .explore-library-choice-label strong { font-size: 12px; }
  .explore-library-choice-label svg { display: none; }
}
