.demo-page {
  max-width: 1420px;
  margin: auto;
  padding: 28px 36px 60px;
}
.demo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 4px 0 24px;
}
.demo-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 750;
  margin-bottom: 8px;
}
.demo-hero h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.25;
  margin: 0 0 8px;
}
.demo-hero h1 span {
  background: linear-gradient(100deg, #644bff, #b83de7);
  color: transparent;
  background-clip: text;
}
.demo-hero > div > p:last-child {
  font-size: 14px;
  color: var(--muted);
}
.demo-hero > .button {
  font-size: 12px;
  flex-shrink: 0;
}
.demo-disclosure {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 23px;
}
.demo-mark {
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  padding: 3px 6px;
  font-weight: 700;
  white-space: nowrap;
}
.demo-disclosure p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.demo-disclosure > a {
  font-size: 11px;
  color: var(--primary);
  white-space: nowrap;
}
.demo-feed-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.demo-sort {
  display: flex;
  gap: 26px;
  font-size: 16px;
  font-weight: 650;
}
.demo-sort > a {
  padding: 9px 0;
  color: var(--muted);
  position: relative;
}
.demo-sort > a.active {
  color: var(--text);
}
.demo-sort > a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
}
.demo-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 24px;
  width: 320px;
  overflow: hidden;
}
.demo-search input {
  border: 0;
  outline: 0;
  box-shadow: none;
  width: 100%;
  min-width: 0;
  padding: 9px 16px;
  background: transparent;
  font-size: 12px;
}
.demo-search .icon-btn {
  border: 0;
  background: none;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.demo-topics {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 0 12px;
}
.demo-topic {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--muted);
}
.demo-topic svg {
  height: 14px;
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.demo-topic.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.demo-results {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 19px;
}
.demo-waterfall {
  columns: 5;
  column-gap: 20px;
}
.demo-card {
  break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 25px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
}
.demo-cover {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  width: 100%;
  border: 1px solid var(--line);
}
.demo-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.25s;
}
.demo-cover.portrait {
  aspect-ratio: 3/4;
}
.demo-cover.landscape {
  aspect-ratio: 5/4;
}
.demo-cover.square {
  aspect-ratio: 1;
}
.demo-cover:hover img {
  transform: scale(1.025);
}
.demo-pill {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 700;
  background: #fffef5eb;
  color: #57418c;
  border: 1px solid #b5a7d488;
  border-radius: 5px;
}
.demo-image-count {
  position: absolute;
  bottom: 9px;
  right: 9px;
  color: #fff;
  background: #1d1725a6;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 9px;
}
.demo-card-copy {
  padding: 10px 3px 0;
}
.demo-card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}
.demo-card-tags {
  display: flex;
  gap: 7px;
  color: var(--primary);
  font-size: 10px;
  margin: 7px 0 9px;
  white-space: nowrap;
  overflow: hidden;
}
.demo-card-tags span:before {
  content: '#';
  margin-right: 2px;
  opacity: 0.6;
}
.demo-card-author {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
}
.demo-card-author > a {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.demo-card-author > a img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-card-author > a span {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-counter {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 2px 0;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.demo-counter svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.demo-counter.active {
  color: #8b4dff;
}
.demo-counter.active svg {
  fill: #daceff;
}
.demo-card-foot {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 8px;
}
.demo-mini-id {
  margin-left: auto;
  color: var(--muted);
  font-size: 8px;
  opacity: 0.65;
}
.demo-feed-end {
  padding: 35px 0;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.demo-feed-end > span {
  font-size: 28px;
  color: var(--primary);
}
.demo-feed-end p {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 18px;
}
.demo-detail-wrap,
.demo-profile-page {
  max-width: 1160px;
  padding: 24px 30px 70px;
  margin: auto;
}
.demo-back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.demo-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
  align-items: start;
}
.demo-detail-main {
  border: 1px solid var(--line);
  border-radius: 19px;
  overflow: hidden;
  background: var(--surface);
}
.demo-detail-media {
  background: var(--soft);
  position: relative;
  padding: 18px;
  display: flex;
  justify-content: center;
}
.demo-detail-media > img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}
.demo-detail-gallery {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.demo-detail-gallery > button {
  border: 2px solid transparent;
  border-radius: 8px;
  width: 58px;
  height: 65px;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
  background: var(--soft);
}
.demo-detail-gallery > button.active {
  border-color: var(--primary);
}
.demo-detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.demo-story {
  padding: 26px;
}
.demo-story-category {
  color: var(--primary);
  font-size: 11px;
}
.demo-story h1 {
  font-size: 26px;
  line-height: 1.4;
  margin: 12px 0 16px;
  letter-spacing: -0.7px;
}
.demo-story-intro {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.demo-story h2 {
  font-size: 18px;
  margin: 25px 0 14px;
}
.demo-story .user-text {
  font-size: 14px;
  line-height: 1.9;
}
.demo-source {
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  font-size: 11px;
  line-height: 1.8;
  margin-top: 26px;
}
.demo-source p {
  margin: 7px 0;
}
.demo-source a {
  color: var(--primary);
}
.demo-detail-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.demo-detail-actions .demo-counter {
  font-size: 13px;
}
.demo-detail-actions > span {
  font-size: 10px;
  color: var(--muted);
  margin-left: auto;
}
.demo-note-comments h2 > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}
.demo-comment-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.demo-comment {
  display: flex;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.demo-comment > img,
.demo-comment > .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-comment strong {
  font-size: 12px;
}
.demo-comment > div > span {
  font-size: 9px;
  color: var(--primary);
  margin-left: 9px;
}
.demo-comment p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-note-comments form {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.demo-note-comments form > label {
  font-size: 12px;
}
.demo-note-comments textarea {
  min-height: 90px;
}
.demo-note-comments form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.demo-note-comments form small {
  font-size: 10px;
  color: var(--muted);
}
.demo-user-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.demo-user-link {
  display: flex;
  gap: 12px;
  align-items: center;
}
.demo-user-link img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.demo-user-link strong {
  display: block;
  font-size: 14px;
}
.demo-user-link small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.demo-user-panel > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 16px 0 20px;
}
.demo-user-stats {
  display: flex;
  gap: 35px;
  margin-top: 23px;
}
.demo-user-stats strong {
  display: block;
  font-size: 18px;
}
.demo-user-stats small {
  font-size: 10px;
  color: var(--muted);
}
.demo-side-note {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 18px;
}
.demo-side-note > span {
  color: var(--primary);
  font-size: 26px;
}
.demo-side-note h2 {
  font-size: 19px;
  margin: 12px 0;
}
.demo-side-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 17px;
}
.demo-profile-cover {
  height: 150px;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at right, #dfe8ff, transparent),
    linear-gradient(120deg, #e7dbff, #f8e5ed);
}
.demo-profile-info {
  padding: 0 22px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: -32px;
  position: relative;
}
.demo-profile-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 6px solid var(--surface);
}
.demo-profile-info > div {
  padding-top: 35px;
  flex: 1;
}
.demo-profile-info h1 {
  font-size: 24px;
  margin: 9px 0;
}
.demo-profile-info p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.demo-profile-info small {
  font-size: 10px;
  color: var(--muted);
}
.demo-profile-info > .button {
  margin-top: 38px;
}
.demo-profile-numbers {
  display: flex;
  gap: 30px;
  padding: 28px 28px;
  font-size: 12px;
  color: var(--muted);
}
.demo-profile-numbers strong {
  font-size: 20px;
  color: var(--text);
  margin-right: 5px;
}
.demo-profile-post {
  max-width: 275px;
  padding: 0 26px;
  margin-top: 15px;
}
.password-match {
  font-size: 12px;
  margin-top: -8px;
}
.password-match.invalid {
  color: #b33350;
}
.password-match.valid {
  color: #277851;
}
@media (max-width: 1200px) {
  .demo-waterfall {
    columns: 4;
  }
  .demo-page {
    padding: 24px 28px;
  }
  .demo-card-title {
    font-size: 13px;
  }
}
@media (max-width: 900px) {
  .demo-waterfall {
    columns: 3;
    column-gap: 16px;
  }
  .demo-hero h1 {
    font-size: 27px;
  }
  .demo-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .demo-detail-aside {
    display: none;
  }
  .demo-detail-wrap {
    max-width: 800px;
  }
  .demo-disclosure a {
    display: none;
  }
}
@media (max-width: 600px) {
  .demo-page {
    padding: 20px 13px 75px;
  }
  .demo-hero {
    display: block;
    padding: 0 5px 17px;
  }
  .demo-hero h1 {
    font-size: 26px;
    line-height: 1.25;
    max-width: 345px;
    letter-spacing: -0.8px;
  }
  .demo-hero > div > p:last-child {
    font-size: 12px;
    line-height: 1.65;
  }
  .demo-eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
  }
  .demo-hero > .button {
    display: none;
  }
  .demo-disclosure {
    padding: 8px 10px;
    gap: 7px;
    margin-bottom: 14px;
  }
  .demo-disclosure p {
    font-size: 9px;
    line-height: 1.55;
  }
  .demo-feed-tools {
    gap: 12px;
    margin: 0 3px 13px;
  }
  .demo-sort {
    gap: 20px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .demo-search {
    width: 130px;
  }
  .demo-search input {
    padding: 8px 10px;
    font-size: 10px;
  }
  .demo-search .icon-btn {
    width: 28px;
    height: 30px;
  }
  .demo-topics {
    gap: 7px;
    margin: 0 3px;
  }
  .demo-topic {
    font-size: 10px;
    padding: 7px 9px;
  }
  .demo-topic svg {
    width: 12px;
    height: 12px;
  }
  .demo-results {
    margin: 4px 4px 15px;
    font-size: 9px;
  }
  .demo-results > span:last-child {
    display: none;
  }
  .demo-waterfall {
    columns: 2;
    column-gap: 12px;
  }
  .demo-card {
    margin-bottom: 22px;
  }
  .demo-cover {
    border-radius: 11px;
  }
  .demo-card-title {
    font-size: 12px;
    line-height: 1.6;
  }
  .demo-card-copy {
    padding: 8px 2px 0;
  }
  .demo-card-tags {
    font-size: 9px;
    margin: 6px 0 8px;
    gap: 4px;
  }
  .demo-card-author > a img {
    width: 19px;
    height: 19px;
  }
  .demo-card-author > a span {
    font-size: 9px;
  }
  .demo-counter {
    font-size: 9px;
    gap: 3px;
  }
  .demo-counter svg {
    width: 13px;
    height: 13px;
  }
  .demo-card-foot {
    gap: 11px;
    margin-top: 7px;
  }
  .demo-mini-id {
    font-size: 7px;
  }
  .demo-pill {
    font-size: 8px;
    top: 7px;
    left: 7px;
    padding: 2px 5px;
  }
  .demo-image-count {
    font-size: 8px;
    padding: 2px 5px;
    bottom: 7px;
    right: 7px;
  }
  .demo-detail-wrap,
  .demo-profile-page {
    padding: 16px 12px 75px;
  }
  .demo-detail-media {
    padding: 10px;
  }
  .demo-story {
    padding: 19px 16px;
  }
  .demo-story h1 {
    font-size: 22px;
  }
  .demo-detail-actions {
    gap: 20px;
  }
  .demo-detail-actions > span {
    display: none;
  }
  .demo-profile-info {
    padding: 0 8px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .demo-profile-avatar {
    width: 80px;
    height: 80px;
  }
  .demo-profile-info h1 {
    font-size: 21px;
  }
  .demo-profile-info > div {
    min-width: 190px;
  }
  .demo-profile-info > .button {
    margin: 8px 0 0 90px;
  }
  .demo-profile-numbers {
    gap: 20px;
    padding: 24px 8px;
    font-size: 10px;
  }
  .demo-profile-numbers strong {
    font-size: 17px;
  }
  .demo-profile-cover {
    height: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-cover img {
    transition: none;
  }
}
