.feed-page {
  --feed-border: rgba(255, 255, 255, 0.09);
  --feed-muted: rgba(var(--ominhub-text-rgb),0.62);
  --feed-surface: rgba(10, 3, 25, 0.94);
  --feed-accent: var(--ominhub-accent-warm);
  width: min(1030px, calc(100vw - 34px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 320px);
  justify-content: center;
  align-items: start;
  gap: 40px;
}

.feed-primary,
.feed-stream {
  min-width: 0;
  width: 100%;
}

.feed-stream {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.feed-stream > * {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.feed-stories {
  display: flex;
  gap: 15px;
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 15px 14px 17px;
  margin-bottom: 20px;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  background: var(--feed-surface);
  scrollbar-width: thin;
  scrollbar-color: var(--feed-accent) transparent;
}

.feed-stories::-webkit-scrollbar,
.feed-suggestion-carousel__track::-webkit-scrollbar,
.feed-comments__list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.feed-stories::-webkit-scrollbar-thumb,
.feed-suggestion-carousel__track::-webkit-scrollbar-thumb,
.feed-comments__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(135deg, #ffad13, #ff526e);
}

.feed-story {
  width: 70px;
  flex: 0 0 70px;
  display: grid;
  justify-items: center;
  gap: 7px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
}

.feed-story > span:last-child {
  width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-story__ring {
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffc000, #ff4d68 55%, #8d3fff);
}

.feed-story__avatar,
.feed-avatar,
.feed-profile-card__avatar,
.feed-suggestion-carousel__avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ominhub-avatar-fallback);
  color: #fff;
  font-weight: 900;
}

.feed-story__avatar {
  width: 100%;
  height: 100%;
  border: 3px solid #080016;
}

.feed-story img,
.feed-avatar img,
.feed-profile-card__avatar img,
.feed-suggestion-carousel__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-card,
.feed-profile-card,
.feed-suggestion-carousel {
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  background: var(--feed-surface);
}

.feed-card {
  overflow: hidden;
}

.feed-card__header {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
}

.feed-avatar {
  width: 42px;
  height: 42px;
  text-decoration: none;
}

.feed-card__identity {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.feed-card__name-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.feed-card__name {
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card__meta {
  color: var(--feed-muted);
  font-size: 0.77rem;
}

.feed-verified {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ominhub-verified);
  color: #fff;
  font-size: 0.65rem;
}

.feed-visibility {
  padding: 2px 7px;
  border: 1px solid rgba(255, 174, 40, 0.34);
  border-radius: 999px;
  color: var(--ominhub-accent-warm);
  font-size: 0.66rem;
  font-weight: 800;
}

.feed-follow-button {
  border: 0;
  border-radius: 9px;
  padding: 7px 10px;
  background: transparent;
  color: var(--feed-accent);
  font-weight: 850;
  cursor: pointer;
}

.feed-follow-button.is-active {
  color: #fff;
}

.feed-follow-button--compact {
  font-size: 0.77rem;
}

.feed-media {
  position: relative;
  width: 100%;
  min-height: 420px;
  max-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ominhub-bg-deep);
  color: #fff;
  text-decoration: none;
}

.feed-media img {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: contain;
  background: var(--ominhub-bg-deep);
}

.feed-media--image img,
.feed-media--video img {
  min-height: 420px;
}

.feed-media--short-video {
  min-height: 0;
  display: grid;
  place-items: center;
  background: var(--ominhub-bg-deep);
}

.feed-media--short-video video,
.feed-media--short-video .feed-short-video-player {
  width: 100%;
  max-height: min(78vh, 720px);
  display: block;
  object-fit: contain;
  background: var(--ominhub-bg-deep);
}

.feed-short-video-preview {
  position: relative;
  width: 100%;
  min-height: 420px;
  max-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: var(--ominhub-bg-deep);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.feed-short-video-preview img {
  width: 100%;
  max-height: min(78vh, 720px);
  height: auto;
  object-fit: contain;
  background: var(--ominhub-bg-deep);
}

.feed-short-video-preview__fallback {
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--ominhub-accent-rgb),0.16), transparent 34%),
    var(--ominhub-bg-deep);
}

.feed-short-video-play-copy {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}

.feed-short-video-preview:hover .feed-play,
.feed-short-video-preview:focus-visible .feed-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(var(--ominhub-accent-rgb),0.86);
  color: #16001d;
}

.feed-short-video-preview:focus-visible {
  outline: 3px solid rgba(255, 179, 71, 0.62);
  outline-offset: -3px;
}

.feed-short-video-label {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  pointer-events: none;
}

.feed-media--text {
  min-height: 390px;
  padding: 42px;
  background:
    radial-gradient(circle at 20% 10%, rgba(var(--ominhub-accent-rgb),0.22), transparent 30%),
    linear-gradient(145deg, #2c0b42, var(--ominhub-bg) 70%);
}

.feed-media--text > div {
  max-width: 42ch;
  text-align: center;
}

.feed-media--text strong {
  font-size: clamp(1.55rem, 5vw, 2.7rem);
}

.feed-media--text p {
  line-height: 1.6;
}

.feed-media__fallback {
  opacity: 0.45;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.feed-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.66);
  font-size: 1.5rem;
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.feed-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.78);
  font-size: 0.76rem;
}

.feed-card__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 2px;
}

.feed-card__actions-left {
  display: flex;
  gap: 4px;
}

.feed-action {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
  cursor: pointer;
}

.feed-action.is-active {
  color: var(--ominhub-accent-2);
}

.feed-watch-link {
  color: var(--feed-accent);
  font-weight: 850;
  text-decoration: none;
}

.feed-card__copy {
  display: grid;
  gap: 7px;
  padding: 0 13px 14px;
}

.feed-card__copy > strong {
  font-size: 0.9rem;
}

.feed-card__copy p {
  margin: 0;
  line-height: 1.45;
}

.feed-card__copy p a {
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.feed-card__title {
  color: var(--feed-muted);
  font-size: 0.88rem;
}

.feed-comments-link {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--feed-muted);
  cursor: pointer;
}

.feed-comments {
  margin: 0 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 155, 18, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 82, 110, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(20, 6, 39, 0.98), rgba(8, 2, 21, 0.98));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
  animation: feed-comments-enter 180ms ease-out;
}

.feed-comments__header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.feed-comments__heading,
.feed-comments__header-actions,
.feed-comments__meta {
  display: flex;
  align-items: center;
}

.feed-comments__heading {
  min-width: 0;
  gap: 10px;
}

.feed-comments__heading-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 155, 18, 0.2), rgba(255, 82, 110, 0.13));
  color: var(--ominhub-accent-warm);
  font-size: 1.15rem;
}

.feed-comments__heading > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feed-comments__heading strong {
  color: #fff;
  font-size: 0.93rem;
}

.feed-comments__heading small {
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-comments__header-actions {
  gap: 8px;
}

.feed-comments__count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 155, 18, 0.28);
  border-radius: 999px;
  color: var(--ominhub-accent-warm);
  font-size: 0.76rem;
  font-weight: 850;
}

.feed-comments__close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.feed-comments__close:hover,
.feed-comments__close:focus-visible {
  border-color: rgba(255, 82, 110, 0.45);
  background: rgba(255, 82, 110, 0.12);
  color: #fff;
  transform: scale(1.04);
}

.feed-comments__list {
  max-height: 330px;
  display: grid;
  gap: 4px;
  overflow: auto;
  padding: 9px 10px;
  scrollbar-gutter: stable;
}

.feed-comment-row {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 9px 8px;
  border-radius: 12px;
  transition: background 150ms ease;
}

.feed-comment-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.feed-comment-row.is-reply {
  margin-left: 34px;
  padding-left: 10px;
  border-left: 2px solid rgba(255, 155, 18, 0.22);
}

.feed-comment-row__avatar {
  width: 34px;
  height: 34px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 155, 18, 0.25);
  border-radius: 50%;
  background: #27104b;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.feed-comment-row__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-comment-row__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.feed-comment-row__meta {
  min-width: 0;
  gap: 6px;
}

.feed-comment-row__author {
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-comment-row__verified {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ominhub-verified);
  color: #fff;
  font-size: 0.52rem;
  font-weight: 900;
}

.feed-comment-row__meta time,
.feed-comment-row__content small {
  color: rgba(var(--ominhub-text-rgb),0.48);
  font-size: 0.68rem;
}

.feed-comment-row__content p {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.45;
}

.feed-comment-delete {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 138, 156, 0.72);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.feed-comment-delete:hover,
.feed-comment-delete:focus-visible {
  background: rgba(255, 82, 110, 0.12);
  color: #ffd4dc;
}

.feed-comments__empty {
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px;
  color: var(--feed-muted);
  text-align: center;
}

.feed-comments__empty > span {
  font-size: 1.55rem;
  color: rgba(255, 180, 60, 0.66);
}

.feed-comments__empty strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
}

.feed-comments__empty small,
.feed-comments__gate {
  color: var(--feed-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.feed-comments__loading {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.feed-comments__loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ominhub-accent-warm);
  animation: feed-comment-loading 900ms ease-in-out infinite;
}

.feed-comments__loading span:nth-child(2) { animation-delay: 120ms; }
.feed-comments__loading span:nth-child(3) { animation-delay: 240ms; }

.feed-comment-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
}

.feed-comment-form__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 155, 18, 0.1);
  color: var(--ominhub-accent-warm);
}

.feed-comment-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 10px 13px;
  outline: none;
  background: rgba(5, 0, 15, 0.72);
  color: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.feed-comment-form input:focus {
  border-color: rgba(255, 155, 18, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 155, 18, 0.08);
}

.feed-comment-form button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 13px;
  background: linear-gradient(135deg, var(--ominhub-accent-warm), #ff5d73);
  color: #18030b;
  font-weight: 900;
  cursor: pointer;
}

.feed-comment-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.feed-comments__gate {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 155, 18, 0.045);
}

@keyframes feed-comments-enter {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes feed-comment-loading {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}


.feed-suggestion-carousel {
  overflow: hidden;
  padding: 14px;
}

.feed-suggestion-carousel__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.feed-suggestion-carousel__header a,
.feed-sidebar a {
  color: var(--feed-accent);
  text-decoration: none;
  font-weight: 800;
}

.feed-suggestion-carousel__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.feed-suggestion-carousel__item {
  width: 168px;
  flex: 0 0 168px;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--feed-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.feed-suggestion-carousel__avatar {
  width: 72px;
  height: 72px;
  text-decoration: none;
}

.feed-suggestion-carousel__name {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-suggestion-carousel__username,
.feed-suggestion-carousel__reason {
  max-width: 100%;
  overflow: hidden;
  color: var(--feed-muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  background: transparent;
}

.feed-profile-card__avatar {
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.feed-profile-card__copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.feed-profile-card__copy span,
.feed-profile-card__copy small {
  overflow: hidden;
  color: var(--feed-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
}

.feed-sidebar-card {
  padding: 14px;
}

.feed-sidebar-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.feed-sidebar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
}

.feed-sidebar > small {
  color: var(--feed-muted);
}

.feed-status {
  min-height: 30px;
  padding: 14px;
  color: var(--feed-muted);
  text-align: center;
}

.feed-sentinel {
  height: 1px;
}

.feed-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  border: 1px solid var(--feed-border);
  border-radius: 12px;
  text-align: center;
}

.feed-empty > div {
  font-size: 3rem;
}

.feed-empty h2,
.feed-empty p {
  margin: 0;
}

.feed-empty a,
.feed-empty button {
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: #ff9216;
  color: #140208;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.feed-skeleton {
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: feed-shimmer 1.3s linear infinite;
}

.feed-card--skeleton {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.feed-skeleton--header { width: 58%; height: 44px; }
.feed-skeleton--media { height: 520px; }
.feed-skeleton--line { width: 80%; height: 14px; }
.feed-skeleton--line.is-short { width: 45%; }
.feed-skeleton--stories { min-width: 100%; height: 64px; }

@keyframes feed-shimmer {
  to { background-position: -200% 0; }
}

@media (max-width: 960px) {
  .feed-layout {
    grid-template-columns: minmax(0, 560px);
  }

  .feed-sidebar {
    display: none;
  }
}

@media (max-width: 610px) {
  .feed-page {
    width: 100%;
    padding-top: 12px;
  }

  .feed-stories,
  .feed-card,
  .feed-suggestion-carousel,
  .feed-empty {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .feed-stream {
    gap: 12px;
  }

  .feed-media,
  .feed-media--image img,
  .feed-media--video img {
    min-height: 300px;
  }

  .feed-media--short-video {
    min-height: 0;
  }

  .feed-media--short-video video,
  .feed-media--short-video .feed-short-video-player,
  .feed-short-video-preview,
  .feed-short-video-preview img {
    max-height: 72vh;
  }

  .feed-short-video-preview,
  .feed-short-video-preview__fallback {
    min-height: 300px;
  }

  .feed-media--text {
    min-height: 320px;
    padding: 30px 24px;
  }

  .feed-follow-button--compact {
    display: none;
  }
}

@media (max-width: 560px) {
  .feed-comments {
    margin-inline: 8px;
    border-radius: 14px;
  }

  .feed-comments__heading small {
    display: none;
  }

  .feed-comment-row.is-reply {
    margin-left: 18px;
  }

  .feed-comment-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .feed-comment-form__icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-skeleton,
  .feed-comments,
  .feed-comments__loading span {
    animation: none;
  }
}

/* patch141 · public stories, paid memberships and match actions */
.feed-story { border: 0; background: transparent; cursor: pointer; }
.feed-story.is-viewed .feed-story__ring { background: rgba(255,255,255,.18); }
.feed-story--add .feed-story__ring--add { background: rgba(255,255,255,.13); }
.feed-story--add .feed-story__avatar { border-color: #080016; font-size: 1.75rem; font-weight: 300; }
.feed-suggestion-actions { width: 100%; display: grid; gap: 8px; margin-top: auto; }
.feed-profile-card { grid-template-columns: auto minmax(0,1fr) auto; }
.feed-profile-card__actions { display: grid; justify-items: end; gap: 5px; }
.feed-match-button { min-height: 34px; border: 1px solid rgba(255,82,110,.55); border-radius: 9px; padding: 6px 10px; background: rgba(255,82,110,.1); color: #ff8fa2; font-weight: 850; cursor: pointer; }
.feed-match-button:hover:not(:disabled) { background: rgba(255,82,110,.2); }
.feed-match-button.is-active { border-color: rgba(45,228,167,.42); background: rgba(45,228,167,.1); color: #75f2c8; }
.feed-match-button.is-compact { min-height: 28px; padding: 4px 8px; font-size: .72rem; }
.feed-sidebar [data-feed-suggestions] { display: grid; gap: 13px; }
@media (max-width: 680px) {
  .feed-profile-card { grid-template-columns: auto minmax(0,1fr); }
  .feed-profile-card__actions { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
}


/* patch154 · canonical advertising placements inside the organic feed */
.feed-advertisement-card {
  position: relative;
  border-color: var(--feed-border);
}

.feed-advertisement-card__avatar {
  background: linear-gradient(145deg, var(--ominhub-accent-warm), var(--ominhub-accent-2) 62%, #793cff);
  color: #17031f;
}

.feed-advertisement-card__avatar > span {
  font-size: 1rem;
  font-weight: 950;
}

.feed-advertisement-label {
  color: var(--feed-muted);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.feed-advertisement-card__menu {
  color: var(--feed-muted);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.feed-advertisement-media {
  isolation: isolate;
}

.feed-advertisement-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(5, 0, 14, 0.34));
  content: '';
}

.feed-advertisement-media--image img,
.feed-advertisement-media--video video {
  width: 100%;
  min-height: 420px;
  max-height: 720px;
  object-fit: contain;
  background: var(--ominhub-bg-deep);
}

.feed-advertisement-media--video video {
  display: block;
}

.feed-advertisement-media--text {
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 177, 43, 0.3), transparent 31%),
    radial-gradient(circle at 86% 84%, rgba(139, 64, 255, 0.25), transparent 34%),
    linear-gradient(145deg, #351047, #0b021b 72%);
}

.feed-advertisement-media--text > div {
  display: grid;
  gap: 16px;
}

.feed-advertisement-media__eyebrow {
  justify-self: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.feed-advertisement-card__actions {
  min-height: 54px;
  padding: 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-advertisement-card__sponsor {
  color: var(--feed-muted);
  font-size: 0.64rem;
  font-weight: 650;
}

.feed-advertisement-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  padding: 9px 12px;
  background: linear-gradient(135deg, var(--ominhub-accent-warm), #ff725f);
  color: #190410;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.feed-advertisement-card__cta:hover,
.feed-advertisement-card__cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.feed-advertisement-card__copy {
  padding-top: 13px;
}

.feed-advertisement-card__headline {
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 610px) {
  .feed-advertisement-media--image img,
  .feed-advertisement-media--video video {
    min-height: 300px;
  }

  .feed-advertisement-card__cta {
    padding-inline: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-advertisement-card__cta {
    transition: none;
  }
}

/* patch176 · in-stream conversion boundary after the anonymous ten-item preview */
.feed-anonymous-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: clamp(18px, 4vw, 28px);
  align-items: center;
  padding: clamp(28px, 5vw, 36px);
  border: 1px solid rgba(255, 157, 31, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 159, 25, 0.2), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(148, 65, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(31, 7, 54, 0.98), rgba(9, 2, 25, 0.98) 72%);
  box-shadow: 0 26px 70px rgba(3, 0, 12, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feed-anonymous-preview::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 32%);
  content: '';
}

.feed-anonymous-preview__copy {
  min-width: 0;
}

.feed-anonymous-preview__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--ominhub-accent-warm);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feed-anonymous-preview__eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff596e;
  box-shadow: 0 0 16px rgba(255, 89, 110, 0.75);
  content: '';
}

.feed-anonymous-preview h2 {
  max-width: 500px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 4.4vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.feed-anonymous-preview__lead {
  max-width: 540px;
  margin: 16px 0 0;
  color: rgba(var(--ominhub-text-rgb),0.78);
  font-size: 0.98rem;
  line-height: 1.65;
}

.feed-anonymous-preview__benefits {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feed-anonymous-preview__benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
}

.feed-anonymous-preview__benefits li > span:first-child {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border: 1px solid rgba(255, 174, 45, 0.44);
  border-radius: 999px;
  background: rgba(255, 157, 31, 0.12);
  color: #ffba49;
  font-size: 0.7rem;
}

.feed-anonymous-preview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 25px;
}

.feed-anonymous-preview__primary,
.feed-anonymous-preview__secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.feed-anonymous-preview__primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, #ffab20, var(--ominhub-accent-2));
  color: #19030e;
  box-shadow: 0 12px 28px rgba(255, 83, 109, 0.2);
}

.feed-anonymous-preview__secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.feed-anonymous-preview__primary:hover,
.feed-anonymous-preview__primary:focus-visible,
.feed-anonymous-preview__secondary:hover,
.feed-anonymous-preview__secondary:focus-visible {
  filter: brightness(1.09);
  transform: translateY(-2px);
}

.feed-anonymous-preview__secondary:hover,
.feed-anonymous-preview__secondary:focus-visible {
  border-color: rgba(255, 174, 45, 0.55);
  background: rgba(255, 174, 45, 0.08);
}

.feed-anonymous-preview__primary:focus-visible,
.feed-anonymous-preview__secondary:focus-visible {
  outline: 3px solid rgba(255, 179, 51, 0.28);
  outline-offset: 3px;
}

.feed-anonymous-preview__trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: rgba(var(--ominhub-text-rgb),0.58);
  font-size: 0.75rem;
  line-height: 1.4;
}

.feed-anonymous-preview__trust > span:first-child {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffb43a;
  font-size: 0.67rem;
  font-weight: 950;
}

.feed-anonymous-preview__visual {
  position: relative;
  display: grid;
  width: 132px;
  height: 190px;
  place-items: center;
  justify-self: end;
}

.feed-anonymous-preview__orbit {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 190, 72, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 52px rgba(147, 63, 255, 0.18), inset 0 0 35px rgba(255, 98, 102, 0.08);
}

.feed-anonymous-preview__orbit::before,
.feed-anonymous-preview__orbit::after {
  position: absolute;
  border-radius: 50%;
  content: '';
}

.feed-anonymous-preview__orbit::before {
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.feed-anonymous-preview__orbit::after {
  top: -5px;
  left: 61px;
  width: 10px;
  height: 10px;
  background: #ff9d1f;
  box-shadow: 0 0 20px rgba(255, 157, 31, 0.8);
}

.feed-anonymous-preview__badge {
  position: relative;
  z-index: 1;
  display: grid;
  width: 92px;
  height: 116px;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 31px;
  background: linear-gradient(155deg, rgba(255, 171, 32, 0.98), rgba(255, 76, 107, 0.98));
  color: #1b0310;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  transform: rotate(4deg);
}

.feed-anonymous-preview__badge > span {
  font-size: 1.15rem;
  line-height: 1;
}

.feed-anonymous-preview__badge strong {
  font-size: 2.35rem;
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.feed-anonymous-preview__badge small {
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.feed-anonymous-preview__spark {
  position: absolute;
  color: #ffd37d;
  text-shadow: 0 0 14px rgba(255, 176, 50, 0.72);
}

.feed-anonymous-preview__spark--one {
  top: 13px;
  right: 5px;
  font-size: 1rem;
}

.feed-anonymous-preview__spark--two {
  bottom: 21px;
  left: 3px;
  color: #ff7d9a;
  font-size: 0.72rem;
}

@media (max-width: 610px) {
  .feed-anonymous-preview {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .feed-anonymous-preview__visual {
    display: none;
  }

  .feed-anonymous-preview__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .feed-anonymous-preview__primary,
  .feed-anonymous-preview__secondary {
    width: 100%;
    min-height: 48px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-anonymous-preview__primary,
  .feed-anonymous-preview__secondary {
    transition: none;
  }
}

/* Founding Creator Challenge card/carousel styles are shared globally in
   css/components/launch-contest-promotion.css so Home and Feed render identically. */


/* patch243 · canonical publication copy, avatar fallbacks and unobscured play affordance */
.feed-avatar > *,
.feed-story__avatar > *,
.feed-profile-card__avatar > *,
.feed-suggestion-carousel__avatar > *,
.feed-comment-row__avatar > * {
  grid-area: 1 / 1;
}

.feed-avatar-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.feed-avatar img[data-profile-avatar],
.feed-story__avatar img[data-profile-avatar],
.feed-profile-card__avatar img[data-profile-avatar],
.feed-suggestion-carousel__avatar img[data-profile-avatar],
.feed-comment-row__avatar img[data-profile-avatar] {
  opacity: 0;
  transition: opacity 160ms ease;
}

.feed-avatar img[data-profile-avatar].is-loaded,
.feed-story__avatar img[data-profile-avatar].is-loaded,
.feed-profile-card__avatar img[data-profile-avatar].is-loaded,
.feed-suggestion-carousel__avatar img[data-profile-avatar].is-loaded,
.feed-comment-row__avatar img[data-profile-avatar].is-loaded {
  opacity: 1;
}

.feed-card__title {
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0.005em;
}

.feed-card__title strong {
  font-weight: 900;
}

.feed-card__caption {
  color: rgba(255, 255, 255, 0.9);
  overflow-wrap: anywhere;
}

.feed-card__caption-text,
.feed-media--text__body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.feed-copy-disclosure {
  display: grid;
  gap: 5px;
}

.feed-copy-collapsible {
  overflow: hidden;
}

/* Collapse on complete line boxes rather than fractional heights so no glyphs
   are sliced at the lower edge. The lh unit follows the actual computed
   line-height; em values provide an equivalent fallback for older browsers. */
.feed-card__caption.feed-copy-collapsible:not(.is-expanded) {
  line-height: 1.5;
  max-height: 7.5em; /* 5 complete lines fallback */
  max-block-size: 5lh;
}

.feed-media--text__body.feed-copy-collapsible:not(.is-expanded) {
  line-height: 1.6;
  max-height: 8em; /* 5 complete lines fallback */
  max-block-size: 5lh;
}

.feed-copy-collapsible.is-expanded {
  max-height: none;
  max-block-size: none;
  overflow: visible;
}

.feed-copy-toggle {
  justify-self: start;
  border: 0;
  padding: 2px 0;
  background: transparent;
  color: var(--feed-accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.feed-copy-toggle:hover,
.feed-copy-toggle:focus-visible {
  text-decoration: underline;
}

.feed-copy-toggle:focus-visible {
  outline: 2px solid rgba(255, 155, 18, 0.5);
  outline-offset: 3px;
}

.feed-copy-toggle[hidden] {
  display: none;
}

.feed-copy-disclosure--text {
  width: min(100%, 44ch);
  justify-items: center;
}

.feed-copy-toggle--text {
  justify-self: center;
  color: #fff;
}

.feed-media--text__content {
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.feed-media--text__title {
  line-height: 1.2;
}

.feed-media--text__body {
  margin: 0;
}

.feed-play {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(5, 0, 14, 0.34);
  color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  backdrop-filter: none;
}

@media (max-width: 610px) {
  .feed-card__title {
    font-size: 0.96rem;
  }

  .feed-card__caption.feed-copy-collapsible:not(.is-expanded) {
    max-height: 6em; /* 4 complete lines fallback */
    max-block-size: 4lh;
  }

  .feed-media--text__body.feed-copy-collapsible:not(.is-expanded) {
    max-height: 6.4em; /* 4 complete lines fallback */
    max-block-size: 4lh;
  }

  .feed-play {
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feed-avatar img[data-profile-avatar],
  .feed-story__avatar img[data-profile-avatar],
  .feed-profile-card__avatar img[data-profile-avatar],
  .feed-suggestion-carousel__avatar img[data-profile-avatar],
  .feed-comment-row__avatar img[data-profile-avatar] {
    transition: none;
  }
}

/* patch276 · OMINHUB Brand System v2 visual alignment */
.feed-page{
  --feed-border:var(--ominhub-border);
  --feed-muted:var(--ominhub-text-muted);
  --feed-surface:rgba(21,16,29,.88);
  --feed-accent:var(--ominhub-accent);
}
.feed-stories,.feed-card,.feed-profile-card,.feed-suggestion-carousel,.feed-empty{
  border-color:var(--ominhub-border);
  background:linear-gradient(180deg,rgba(33,24,42,.68),rgba(21,16,29,.86));
  box-shadow:0 16px 46px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.025);
}
.feed-stories{border-radius:var(--ominhub-radius-lg);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
.feed-card,.feed-suggestion-carousel,.feed-empty{border-radius:var(--ominhub-radius-lg);}
.feed-story__ring{background:var(--ominhub-gradient-accent-wide);box-shadow:0 5px 18px rgba(var(--ominhub-accent-2-rgb),.13);}
.feed-story__avatar,.feed-avatar,.feed-profile-card__avatar,.feed-suggestion-carousel__avatar{background:var(--ominhub-surface-raised);}
.feed-follow-button{border:1px solid transparent;color:var(--ominhub-text-strong);background:linear-gradient(135deg,rgba(var(--ominhub-accent-2-rgb),.11),rgba(var(--ominhub-violet-rgb),.09));transition:background .18s ease,border-color .18s ease,transform .18s ease;}
.feed-follow-button:hover,.feed-follow-button:focus-visible{border-color:rgba(var(--ominhub-violet-rgb),.25);background:linear-gradient(135deg,rgba(var(--ominhub-accent-2-rgb),.18),rgba(var(--ominhub-violet-rgb),.16));transform:translateY(-1px);}
.feed-visibility{border-color:rgba(var(--ominhub-accent-warm-rgb),.28);color:var(--ominhub-accent-soft);background:rgba(var(--ominhub-accent-warm-rgb),.06);}
.feed-card__actions{border-top:1px solid rgba(255,255,255,.025);}
.feed-action{color:var(--ominhub-text-muted);transition:color .16s ease,transform .16s ease,background .16s ease;border-radius:50%;}
.feed-action:hover,.feed-action:focus-visible{color:var(--ominhub-text-strong);background:rgba(255,255,255,.045);transform:translateY(-1px);}
.feed-action.is-active{color:var(--ominhub-accent-2);}
.feed-watch-link,.feed-suggestion-carousel__header a,.feed-sidebar a{color:var(--ominhub-text-strong);}
.feed-comments{border-color:var(--ominhub-border);background:linear-gradient(180deg,rgba(33,24,42,.94),rgba(15,10,21,.97));box-shadow:var(--ominhub-shadow-card);}
.feed-comments__heading-icon{background:linear-gradient(145deg,rgba(var(--ominhub-accent-2-rgb),.15),rgba(var(--ominhub-violet-rgb),.12));color:var(--ominhub-accent-soft);}
.feed-comment-form input{background:rgba(255,255,255,.045);border-color:var(--ominhub-border);}
.feed-comment-form input:focus{border-color:rgba(var(--ominhub-violet-rgb),.48);box-shadow:var(--ominhub-focus-ring);}
.feed-comment-form button,.feed-empty a,.feed-empty button{background:var(--ominhub-gradient-accent);color:var(--ominhub-on-accent);box-shadow:0 8px 22px rgba(var(--ominhub-accent-2-rgb),.14);}
.feed-suggestion-carousel__item{border-color:var(--ominhub-border);border-radius:var(--ominhub-radius-md);background:rgba(255,255,255,.028);transition:border-color .18s ease,background .18s ease,transform .18s ease;}
.feed-suggestion-carousel__item:hover{border-color:rgba(var(--ominhub-violet-rgb),.25);background:rgba(var(--ominhub-violet-rgb),.055);transform:translateY(-2px);}
.feed-match-button{border-color:rgba(var(--ominhub-violet-rgb),.34);background:rgba(var(--ominhub-violet-rgb),.09);color:#d7bfff;}
.feed-match-button:hover:not(:disabled){background:rgba(var(--ominhub-violet-rgb),.16);}
.feed-advertisement-card__avatar,.feed-advertisement-card__cta{background:var(--ominhub-gradient-accent);color:var(--ominhub-on-accent);}
@media(max-width:610px){.feed-stories,.feed-card,.feed-suggestion-carousel,.feed-empty{box-shadow:none;border-radius:0;}}

/* patch281 · feed mobile surface and touch polish */
@media (max-width:610px){
  .feed-page{
    width:100%;
    padding:10px 0 44px;
  }
  .feed-stream{gap:14px;}
  .feed-stories,
  .feed-card,
  .feed-suggestion-carousel,
  .feed-empty{
    border-left:1px solid var(--feed-border);
    border-right:1px solid var(--feed-border);
    border-radius:var(--ominhub-mobile-radius-lg);
    box-shadow:0 10px 30px rgba(0,0,0,.18);
  }
  .feed-stories{
    padding:14px 12px 15px;
    margin-bottom:14px;
  }
  .feed-card__header{min-height:66px;padding:11px 12px;}
  .feed-card__actions{padding-inline:8px;}
  .feed-action{
    min-width:40px;
    min-height:40px;
  }
  .feed-suggestion-carousel{padding-bottom:4px;}
  .feed-empty{padding-inline:16px;}
}
@media(max-width:420px){
  .feed-story{width:66px;flex-basis:66px;}
  .feed-story__ring{width:60px;height:60px;}
}

@media (max-width:610px){
  .feed-anonymous-preview{
    border-left:1px solid var(--feed-border);
    border-right:1px solid var(--feed-border);
    border-radius:var(--ominhub-mobile-radius-lg);
    padding:26px 18px;
  }
}

