/* Творческая лента MEDIA: общая лента на главной и отдельная авторская страница. */
.community-work-card .project-card-open > img,
.community-work-card .project-card-open > .community-work-placeholder {
  width: 100%;
  aspect-ratio: 1.08 / 1;
}

.community-work-card .project-card-open > img {
  object-fit: cover;
}

.community-work-card--art { border-color: rgba(255, 191, 39, .5); }
.community-work-card--text { border-color: rgba(56, 217, 255, .48); }
.community-work-card--idea { border-color: rgba(239, 54, 255, .48); }

.community-work-placeholder {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 16, 39, .95), rgba(4, 6, 18, .98));
  text-align: center;
}

.community-work-placeholder::before,
.community-work-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.community-work-placeholder::before {
  top: -30%;
  right: -16%;
  width: 72%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(239, 54, 255, .36), transparent 68%);
}

.community-work-placeholder::after {
  bottom: -34%;
  left: -18%;
  width: 76%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(56, 217, 255, .25), transparent 68%);
}

.community-work-placeholder--art { background-color: #140b1a; }
.community-work-placeholder--text { background-color: #061522; }
.community-work-placeholder--idea { background-color: #100821; }

.community-work-placeholder-icon,
.community-work-placeholder strong {
  position: relative;
  z-index: 1;
}

.community-work-placeholder-icon {
  color: var(--gold);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  text-shadow: 0 0 24px currentColor;
}

.community-work-placeholder strong {
  max-width: 100%;
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(.82rem, 2.2vw, 1.2rem);
  letter-spacing: .05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.works-main {
  min-height: 100vh;
  padding: calc(var(--site-header-height, 88px) + 28px) 0 90px;
  background:
    radial-gradient(circle at 12% 11%, rgba(143, 54, 255, .2), transparent 32%),
    radial-gradient(circle at 92% 26%, rgba(56, 217, 255, .12), transparent 29%),
    radial-gradient(circle at 52% 84%, rgba(255, 191, 39, .07), transparent 30%);
}

.works-container {
  width: min(1380px, calc(100% - 32px));
}

.works-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 38px;
  margin: 18px 0 32px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid rgba(239, 54, 255, .48);
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(19, 10, 43, .96), rgba(4, 8, 24, .96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), inset 0 0 60px rgba(143, 54, 255, .08);
}

.works-hero::after {
  content: "✦";
  position: absolute;
  top: -50px;
  right: 13%;
  color: rgba(239, 54, 255, .09);
  font-size: 18rem;
  line-height: 1;
  transform: rotate(18deg);
  pointer-events: none;
}

.works-hero > * { position: relative; z-index: 1; }

.works-hero h1 {
  margin: 6px 0 12px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 400;
  line-height: .94;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.works-hero p:last-child {
  max-width: 780px;
  margin: 0;
  color: #c5bfce;
  font-size: clamp(.92rem, 1.35vw, 1.08rem);
  line-height: 1.7;
}

.works-create-button {
  width: max-content;
  min-width: 245px;
  margin: 0;
  white-space: nowrap;
}

.works-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  align-items: start;
  gap: 28px;
}

.works-feed-panel,
.work-composer {
  border: 1px solid rgba(143, 54, 255, .35);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(9, 12, 31, .92), rgba(4, 6, 18, .97));
  box-shadow: 0 20px 55px rgba(0, 0, 0, .32);
}

.works-feed-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
}

.works-feed-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.works-feed-heading h2,
.work-composer h2 {
  margin: 5px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.works-mine-filter {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(56, 217, 255, .45);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(56, 217, 255, .06);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.works-mine-filter.active {
  color: #04101a;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(56, 217, 255, .42);
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 18px;
}

.works-filters button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #b9b4c3;
  background: rgba(3, 5, 16, .7);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}

.works-filters button:hover,
.works-filters button.active {
  border-color: var(--pink);
  color: #fff;
  background: linear-gradient(90deg, rgba(143, 54, 255, .45), rgba(239, 54, 255, .3));
  box-shadow: 0 0 20px rgba(239, 54, 255, .18);
}

.works-status {
  min-height: 22px;
  margin: 0 0 16px;
  color: #9da6bb;
  font-size: .72rem;
}

.works-status.error,
.work-composer-status.error { color: #ff9caf; }

.work-deletion-status-panel {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid rgba(56, 217, 255, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(143, 54, 255, .14), transparent 42%),
    linear-gradient(155deg, rgba(9, 13, 31, .96), rgba(4, 6, 18, .98));
}

.work-deletion-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}

.work-deletion-status-head h2 {
  margin: 4px 0 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  font-weight: 400;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.work-deletion-pending-badge,
.work-deletion-status-label,
.community-work-deletion-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 191, 39, .42);
  border-radius: 999px;
  color: #ffd56a;
  background: rgba(255, 191, 39, .08);
  font-size: .56rem;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.work-deletion-pending-badge.is-clear {
  border-color: rgba(56, 217, 255, .38);
  color: var(--cyan);
  background: rgba(56, 217, 255, .07);
}

.work-deletion-status-list { display: grid; gap: 10px; }

.work-deletion-status-card {
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 13px;
  background: rgba(2, 5, 16, .68);
}

.work-deletion-status-card--pending { border-color: rgba(255, 191, 39, .28); }
.work-deletion-status-card--approved { border-color: rgba(56, 217, 255, .24); }
.work-deletion-status-card--rejected { border-color: rgba(239, 54, 255, .27); }

.work-deletion-status-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.work-deletion-status-card h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: .95rem;
  line-height: 1.25;
}

.work-deletion-status-card time {
  color: #7f879a;
  font-size: .62rem;
  white-space: nowrap;
}

.work-deletion-status-label--approved {
  border-color: rgba(56, 217, 255, .4);
  color: var(--cyan);
  background: rgba(56, 217, 255, .07);
}

.work-deletion-status-label--rejected {
  border-color: rgba(239, 54, 255, .4);
  color: #f292ff;
  background: rgba(239, 54, 255, .08);
}

.work-deletion-status-message {
  margin: 12px 0 0;
  color: #bcc2d1;
  font-size: .75rem;
  line-height: 1.55;
}

.work-deletion-status-open {
  margin-top: 11px;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
  cursor: pointer;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.community-work-feed-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(239, 54, 255, .3);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(12, 14, 34, .98), rgba(4, 6, 17, .99));
  box-shadow: 0 16px 38px rgba(0, 0, 0, .32);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.community-work-feed-card--art { border-color: rgba(255, 191, 39, .34); }
.community-work-feed-card--text { border-color: rgba(56, 217, 255, .34); }
.community-work-feed-card--idea { border-color: rgba(239, 54, 255, .34); }

.community-work-feed-card:hover {
  border-color: rgba(230, 115, 255, .72);
  box-shadow: 0 22px 46px rgba(76, 17, 118, .28);
  transform: translateY(-4px);
}

.community-work-feed-card-head,
.community-work-feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
}

.community-work-feed-card-head {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.community-work-feed-card-head > time,
.community-work-comment time {
  color: #7f8799;
  font-size: .56rem;
  white-space: nowrap;
}

.community-work-author,
.community-work-comment-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-work-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle, rgba(143, 54, 255, .88), rgba(4, 7, 20, .98));
  box-shadow: 0 0 15px rgba(56, 217, 255, .2);
  font-weight: 900;
}

.community-work-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-work-author-names {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.community-work-author-names strong,
.community-work-author-names small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-work-author-names strong { font-size: .68rem; }
.community-work-author-names small { color: #888fa1; font-size: .54rem; }

.community-work-feed-card-open {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-rows: 245px 1fr;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.community-work-feed-card-media {
  min-height: 0;
  overflow: hidden;
  background: #050714;
}

.community-work-feed-card-media > img,
.community-work-feed-card-media > .community-work-placeholder {
  width: 100%;
  height: 100%;
}

.community-work-feed-card-media > img {
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.community-work-feed-card:hover .community-work-feed-card-media > img { transform: scale(1.035); }

.community-work-feed-card-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.community-work-type {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-work-type--art { color: var(--gold); background: rgba(255, 191, 39, .08); }
.community-work-type--text { color: var(--cyan); background: rgba(56, 217, 255, .08); }
.community-work-type--idea { color: #f077ff; background: rgba(239, 54, 255, .08); }

.community-work-feed-card-content h3 {
  display: -webkit-box;
  margin: 13px 0 8px;
  overflow: hidden;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-work-feed-card-content p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: #aaa7b5;
  font-size: .75rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.community-work-read-more {
  margin-top: auto;
  color: #df74fa;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.community-work-feed-card-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.community-work-view-count {
  display: inline-flex;
  align-items: center;
  color: #c7c8da;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.community-work-feed-card-footer > .community-work-view-count,
.community-work-dialog-actions > .community-work-view-count {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(3, 5, 16, .5);
  font-size: .65rem;
  font-weight: 900;
}

.community-work-deletion-badge { margin-left: auto; }
.community-work-deletion-badge--approved {
  border-color: rgba(56, 217, 255, .4);
  color: var(--cyan);
  background: rgba(56, 217, 255, .07);
}
.community-work-deletion-badge--rejected {
  border-color: rgba(239, 54, 255, .4);
  color: #f292ff;
  background: rgba(239, 54, 255, .08);
}

.community-work-card-like,
.community-work-card-comments,
.community-work-like {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #d6d4dc;
  background: rgba(3, 5, 16, .74);
  font-size: .65rem;
  font-weight: 900;
  cursor: pointer;
}

.community-work-card-like:hover,
.community-work-card-like.active,
.community-work-like:hover,
.community-work-like.active {
  border-color: var(--pink);
  color: #ff7beb;
  box-shadow: 0 0 18px rgba(239, 54, 255, .18);
}

.works-empty {
  grid-column: 1 / -1;
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 40px;
  border: 1px dashed rgba(56, 217, 255, .32);
  border-radius: 18px;
  color: #a9a5b5;
  text-align: center;
}

.works-empty > span { color: var(--cyan); font-size: 3rem; text-shadow: 0 0 26px currentColor; }
.works-empty h3 { margin: 0; color: #fff; font-family: Impact, sans-serif; font-size: 1.7rem; text-transform: uppercase; }
.works-empty p { max-width: 540px; margin: 0; line-height: 1.6; }

.work-composer {
  position: sticky;
  top: calc(var(--site-header-height, 88px) + 18px);
  padding: 28px;
  border-color: rgba(255, 191, 39, .38);
}

.work-composer-copy {
  margin: 10px 0 24px;
  color: #a8a4b2;
  font-size: .78rem;
  line-height: 1.55;
}

.work-composer-close { display: none; }

.work-type-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.work-type-picker legend,
.work-form-field > span {
  grid-column: 1 / -1;
  margin-bottom: 7px;
  color: #d8d3df;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.work-type-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.work-type-picker span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  color: #aaa6b4;
  background: rgba(3, 5, 16, .78);
  font-size: .61rem;
  font-weight: 900;
  cursor: pointer;
}

.work-type-picker input:checked + span {
  border-color: var(--gold);
  color: #fff;
  background: rgba(255, 191, 39, .12);
  box-shadow: inset 0 0 18px rgba(255, 191, 39, .08), 0 0 16px rgba(255, 191, 39, .12);
}

.work-form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.work-form-field input,
.work-form-field textarea,
.community-work-comment-form textarea {
  width: 100%;
  border: 1px solid rgba(143, 54, 255, .42);
  border-radius: 11px;
  color: #fff;
  background: rgba(2, 5, 16, .88);
  outline: none;
}

.work-form-field input { min-height: 48px; padding: 0 14px; }
.work-form-field textarea,
.community-work-comment-form textarea { padding: 13px 14px; resize: vertical; line-height: 1.5; }

.work-form-field input:focus,
.work-form-field textarea:focus,
.community-work-comment-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 217, 255, .08);
}

.work-upload {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px dashed rgba(56, 217, 255, .48);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(56, 217, 255, .04);
  text-align: center;
  cursor: pointer;
}

.work-upload strong { font-size: .68rem; letter-spacing: .06em; }
.work-upload small { color: #8f96a8; font-size: .58rem; line-height: 1.45; }
.work-image-input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.work-image-preview {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 191, 39, .35);
  border-radius: 13px;
  background: #050713;
}

.work-image-preview img { width: 100%; max-height: 260px; display: block; object-fit: contain; }
.work-image-preview button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 5, 16, .88);
  font-size: .55rem;
  font-weight: 900;
  cursor: pointer;
}

.work-submit {
  width: 100%;
  margin-top: 18px;
}

.work-submit:disabled { opacity: .5; cursor: wait; }
.work-composer-status { min-height: 20px; margin: 12px 0 0; color: #8feab5; font-size: .68rem; line-height: 1.45; }
.works-floating-create { display: none; }

.community-work-dialog {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(239, 54, 255, .62);
  border-radius: 24px;
  color: #fff;
  background: #050716;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .74), 0 0 55px rgba(143, 54, 255, .22);
}

.community-work-dialog::backdrop {
  background: rgba(1, 2, 9, .82);
  backdrop-filter: blur(9px);
}

.community-work-dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  max-height: calc(100dvh - 30px);
  overflow-x: hidden;
  overflow-y: auto;
}

.community-work-dialog-close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 5, 16, .85);
  font-size: 1.5rem;
  cursor: pointer;
}

.community-work-dialog-media {
  min-height: 310px;
  max-height: 52vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #02040d;
}

.community-work-dialog-media > img,
.community-work-dialog-media > .community-work-placeholder {
  width: 100%;
  height: 100%;
  min-height: 310px;
}

.community-work-dialog-media > img { object-fit: contain; }

.community-work-dialog-body {
  min-width: 0;
  overflow: visible;
  padding: clamp(28px, 4vw, 48px);
}

.community-work-dialog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-right: 46px;
}

.community-work-dialog-meta time { color: #858da0; font-size: .62rem; }

.community-work-dialog-body > h2 {
  margin: 18px 0 14px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: .98;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.community-work-dialog-text {
  margin: 26px 0;
  color: #c5c0cc;
  line-height: 1.72;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.community-work-dialog-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.community-work-like { min-height: 40px; padding-inline: 16px; }
.community-work-delete {
  margin-left: auto;
  padding: 8px 0;
  border: 0;
  color: #ff879f;
  background: transparent;
  font-size: .6rem;
  font-weight: 900;
  cursor: pointer;
}

.community-work-delete:disabled,
.community-work-delete.is-pending {
  color: #d6bd76;
  cursor: default;
  opacity: .82;
}

.community-work-deletion-status {
  margin: -15px 0 26px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 191, 39, .28);
  border-radius: 11px;
  color: #e5d7ac;
  background: rgba(255, 191, 39, .06);
  font-size: .72rem;
  line-height: 1.55;
}

.community-work-deletion-status--approved {
  border-color: rgba(56, 217, 255, .28);
  color: #b6efff;
  background: rgba(56, 217, 255, .06);
}

.community-work-deletion-status--rejected {
  border-color: rgba(239, 54, 255, .3);
  color: #efb8f7;
  background: rgba(239, 54, 255, .06);
}

.community-work-comments {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.community-work-comments h3 {
  margin: 0 0 17px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.community-work-comments h3 span { color: var(--cyan); }
.community-work-comments-list { display: grid; gap: 10px; }

.community-work-comment {
  position: relative;
  scroll-margin-block: 20px;
  padding: 13px 14px;
  border: 1px solid rgba(56, 217, 255, .14);
  border-radius: 12px;
  background: rgba(3, 5, 16, .62);
}

.community-work-comment:target,
.community-work-comment:focus {
  border-color: var(--cyan);
  outline: 2px solid rgba(56, 217, 255, .4);
  outline-offset: 3px;
  background: rgba(20, 35, 58, .8);
}

.community-work-comment header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-work-comment .community-work-avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: .65rem; }
.community-work-comment-author strong { font-size: .65rem; }
.community-work-comment > p { margin: 10px 0 0; color: #b9b5c1; font-size: .74rem; line-height: 1.55; white-space: pre-wrap; }
.community-work-comment-delete { margin-top: 9px; padding: 0; border: 0; color: #ff879f; background: none; font-size: .54rem; font-weight: 900; cursor: pointer; }
.community-work-comments-empty { margin: 0; padding: 18px; color: #8f95a5; border: 1px dashed rgba(255, 255, 255, .12); border-radius: 11px; text-align: center; }
.community-work-comment-form { display: grid; gap: 10px; margin-top: 14px; }
.community-work-comment-form .button { justify-self: end; width: auto; min-width: 150px; margin: 0; }

@media (max-width: 1080px) {
  .works-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .works-grid { grid-template-columns: 1fr; }
  .community-work-feed-card-open { grid-template-columns: minmax(210px, 42%) minmax(0, 1fr); grid-template-rows: 230px; }
}

@media (max-width: 900px) {
  .works-hero { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .works-create-button { width: 100%; }
  .works-layout { grid-template-columns: 1fr; }
  .work-composer {
    position: fixed;
    z-index: 180;
    inset: var(--site-header-height, 72px) 0 0;
    top: auto;
    max-height: calc(100dvh - var(--site-header-height, 72px));
    padding: 25px 20px max(34px, env(safe-area-inset-bottom));
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 22px 22px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(105%);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }
  .work-composer.is-open { opacity: 1; visibility: visible; transform: none; }
  body.work-composer-open { overflow: hidden; }
  .work-composer-close {
    position: sticky;
    z-index: 2;
    top: 0;
    float: right;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    color: #fff;
    background: rgba(3, 5, 16, .88);
    font-size: 1.4rem;
    cursor: pointer;
  }
  .works-floating-create {
    position: fixed;
    z-index: 90;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #130b00;
    background: linear-gradient(145deg, #ffe473, var(--gold));
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 28px rgba(255, 191, 39, .35);
    font-size: 1.8rem;
    cursor: pointer;
  }
}

@media (max-width: 620px) {
  .works-main { padding-top: calc(var(--site-header-height, 72px) + 18px); }
  .works-container { width: calc(100% - 20px); }
  .works-hero { margin-block: 12px 20px; padding: 24px 18px; border-radius: 18px; }
  .works-hero h1 { font-size: clamp(2.55rem, 15vw, 4.2rem); }
  .works-hero p:last-child { font-size: .84rem; line-height: 1.58; }
  .work-deletion-status-panel { padding: 17px 14px; border-radius: 15px; }
  .work-deletion-status-head,
  .work-deletion-status-card-head { align-items: flex-start; flex-direction: column; }
  .work-deletion-status-card time { white-space: normal; }
  .works-feed-panel { padding: 18px 12px; border-radius: 18px; }
  .works-feed-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .works-mine-filter { align-self: flex-start; }
  .works-filters { flex-wrap: nowrap; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .works-filters::-webkit-scrollbar { display: none; }
  .works-filters button { flex: 0 0 auto; min-height: 36px; padding-inline: 12px; }
  .works-grid { gap: 14px; }
  .community-work-feed-card { border-radius: 15px; }
  .community-work-feed-card-head { padding: 11px 12px; }
  .community-work-feed-card-head > time { display: none; }
  .community-work-feed-card-open { grid-template-columns: minmax(118px, 40%) minmax(0, 1fr); grid-template-rows: minmax(188px, auto); }
  .community-work-feed-card-content { padding: 13px 12px; }
  .community-work-feed-card-content h3 { margin: 10px 0 7px; font-size: clamp(1.05rem, 5.4vw, 1.4rem); -webkit-line-clamp: 3; }
  .community-work-feed-card-content p { margin-bottom: 10px; font-size: .67rem; line-height: 1.45; -webkit-line-clamp: 4; }
  .community-work-read-more { font-size: .52rem; }
  .community-work-feed-card-footer { padding: 9px 12px; }
  .community-work-deletion-badge { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
  .community-work-placeholder { padding: 12px; }
  .community-work-placeholder strong { font-size: .7rem; }
  .community-work-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 17px; }
  .community-work-dialog-card { max-height: calc(100dvh - 14px); }
  .community-work-dialog-media { min-height: 250px; max-height: 42vh; }
  .community-work-dialog-media > img,
  .community-work-dialog-media > .community-work-placeholder { min-height: 250px; }
  .community-work-dialog-body { padding: 24px 17px 30px; }
  .community-work-dialog-body > h2 { padding-right: 28px; font-size: clamp(2rem, 11vw, 3.4rem); }
  .community-work-dialog-meta { padding-right: 38px; }
  .community-work-dialog-meta time { display: none; }
  .community-work-dialog-actions { align-items: flex-start; flex-direction: column; }
  .community-work-delete { margin-left: 0; }
  .community-work-comment-form .button { width: 100%; }
  .works-empty { min-height: 250px; padding: 25px 16px; }
}

@media (max-width: 660px) {
  .home-page #communityWorks .section-intro { margin-bottom: 8px; font-size: .68rem; line-height: 1.35; }
  .home-page #communityWorks .project-card-open > .community-work-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    padding: 6px;
  }
  .home-page #communityWorks .project-card-open > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .home-page #communityWorks .community-work-placeholder-icon { font-size: 1.45rem; }
  .home-page #communityWorks .community-work-placeholder strong { display: none; }
  .home-page #communityWorks .project-card-reactions {
    position: absolute;
    right: 32px;
    bottom: 9px;
    left: 6px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    margin: 0;
  }
  .home-page #communityWorks .project-card-reactions span {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #d7dbea;
    background: transparent;
    font-size: clamp(.38rem, 1.55vw, .46rem);
    line-height: 1;
    white-space: nowrap;
  }
  .home-page #communityWorks .characters-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    margin: -1px;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}
