.me-community-title-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.me-community-order-controls {
  display: flex;
  gap: 4px;
}

.me-community-order-controls button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--me-cp-line, #384247);
  border-radius: 4px;
  background: transparent;
  color: var(--me-cp-muted, #aab3b8);
  cursor: pointer;
}

.me-community-order-controls button:hover:not(:disabled) {
  border-color: var(--me-cp-accent, #f43643);
  color: var(--me-cp-accent, #f43643);
}

.me-community-order-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

.me-community-title-actions > a {
  flex-shrink: 0;
}

.me-community-detail-layout {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.me-community-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--me-cp-line);
}

.me-community-detail-heading {
  min-width: 0;
}

.me-community-detail-heading h1 {
  margin: 0;
  color: var(--movie-engine-white-color, #fff);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.me-community-detail-description,
.me-community-detail-author {
  margin: 8px 0 0;
  color: var(--me-cp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.me-community-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.me-community-detail-list {
  width: 100%;
  max-width: none;
  margin: 0;
}

.me-community-detail-list > h2 {
  margin: 0 0 14px;
  border-bottom: 1px solid var(--me-cp-line);
  padding-bottom: 12px;
  color: var(--movie-engine-white-color, #fff);
  font-size: 22px;
}

.me-community-title {
  grid-template-columns: 38px 76px minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 128px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  background: var(--movie-engine-bg-color, #191c1f);
  margin-bottom: 10px;
  padding: 12px 14px;
}

.me-community-title-poster {
  display: grid;
  width: 76px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--me-cp-muted);
}

.me-community-title-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-community-title-info {
  min-width: 0;
}

.me-community-title-info h3 {
  margin: 0 0 7px;
  color: var(--movie-engine-white-color, #fff);
  font-size: 17px;
  line-height: 1.3;
}

.me-community-title-info p {
  margin: 0;
  color: var(--me-cp-muted);
  font-size: 13px;
}

.me-community-title-actions > a {
  color: var(--me-cp-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.me-community-cover-collage {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 3px;
  overflow: hidden;
  background: #111619;
}

.me-community-cover-collage--1 {
  grid-template-columns: 1fr;
}

.me-community-cover-collage--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.me-community-cover-collage--3,
.me-community-cover-collage--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.me-community-cover-collage--3 img:first-child {
  grid-row: span 2;
}

.me-community-cover-collage img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

@media (max-width: 640px) {
  .me-community-detail-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .me-community-detail-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .me-community-title {
    grid-template-columns: 26px 58px minmax(0, 1fr) 34px;
    gap: 9px;
    padding: 9px;
  }

  .me-community-title-poster {
    width: 58px;
    height: 80px;
  }

  .me-community-title-info h3 {
    font-size: 14px;
  }

  .me-community-title-actions {
    flex-direction: column;
    gap: 6px;
  }

  .me-community-order-controls {
    flex-direction: column;
  }

  .me-community-order-controls button {
    width: 32px;
    height: 32px;
  }
}

.me-community-detail-shell {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto 32px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(13, 24, 31, 0.98), rgba(18, 31, 43, 0.94));
  box-shadow: 0 16px 40px rgba(3, 8, 12, 0.28);
}

.me-community-detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(0, 1fr);
  min-height: 320px;
  background: linear-gradient(90deg, rgba(8, 11, 18, 0.7), rgba(8, 11, 18, 0.2));
}

.me-community-detail-cover {
  position: relative;
  min-height: 260px;
  background: rgba(255, 255, 255, 0.08);
}

.me-community-detail-cover img,
.me-community-detail-collage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.me-community-detail-collage {
  display: grid;
  width: 100%;
  height: 100%;
  gap: 4px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  padding: 10px;
}

.me-community-detail-collage--3 img:first-child,
.me-community-detail-collage--4 img:first-child,
.me-community-detail-collage--5 img:first-child {
  grid-column: span 2;
}

.me-community-detail-collage--5 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.me-community-detail-empty {
  display: grid;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.me-community-detail-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px 24px 20px;
}

.me-community-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.me-community-detail-utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.me-community-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.me-community-back {
  color: #dfeaf3;
  text-decoration: none;
  font-size: 13px;
}

.me-community-detail-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

.me-community-detail-description {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  line-height: 1.6;
}

.me-community-detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
}

.me-community-detail-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
}

.me-community-detail-author strong,
.me-community-detail-author span {
  display: block;
}

.me-community-detail-author strong {
  color: #fff;
  font-size: 14px;
}

.me-community-detail-author span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.me-community-curator-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.me-community-curator-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.me-community-curator-social a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
}

.me-community-detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.me-community-stat {
  display: flex;
  flex-direction: column;
  min-width: 84px;
  color: rgba(255, 255, 255, 0.9);
}

.me-community-stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.me-community-stat-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.me-community-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.me-community-vote,
.me-community-save-btn,
.me-community-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.me-community-vote {
  background: linear-gradient(135deg, #ff3b4f, #db1d35);
  border-color: transparent;
}

.me-community-vote.is-voted {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.me-community-title-meta {
  margin: 0;
  color: #8aa0ad;
  font-size: 12px;
  line-height: 1.5;
}

.me-community-title-link {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 768px) {
  .me-community-detail-hero {
    grid-template-columns: 1fr;
  }

  .me-community-detail-cover {
    min-height: 220px;
  }

  .me-community-detail-content {
    padding: 20px 16px 18px;
  }

  .me-community-detail-stats {
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .me-community-detail-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .me-community-detail-actions {
    width: 100%;
  }

  .me-community-vote,
  .me-community-save-btn,
  .me-community-share-btn {
    flex: 1 1 0;
  }
}