:root {
  --feed-bg: #020205;
  --feed-panel: rgba(7, 10, 15, 0.92);
  --feed-text: #e7fbff;
  --feed-muted: rgba(231, 251, 255, 0.8);
  --feed-pink: #ff00ff;
  --feed-green: #00ff9f;
}

.feed-shell {
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  --feed-surface-width: min(100vw, 640px);
  --feed-topbar-height: 58px;
  padding: 0 0 10px;
  background:
    radial-gradient(1200px 500px at 15% 0%, rgba(255, 0, 255, 0.17), transparent 55%),
    radial-gradient(1100px 500px at 85% 0%, rgba(0, 255, 159, 0.15), transparent 55%),
    var(--feed-bg);
  box-sizing: border-box;
}

.feed-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--feed-surface-width);
  min-height: var(--feed-topbar-height);
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 8px 10px 6px;
  background:
    linear-gradient(180deg, rgba(2, 6, 10, 0.95), rgba(2, 6, 10, 0.78)),
    radial-gradient(280px 140px at 15% 0%, rgba(255, 0, 255, 0.18), transparent 75%);
  border-bottom: 1px solid rgba(0, 255, 159, 0.18);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.feed-switch {
  width: 100%;
  min-width: 0;
}

.feed-switch__scroller {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 12px), transparent);
}

.feed-switch__scroller::-webkit-scrollbar {
  display: none;
}

.feed-switch__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.feed-switch__track {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: min-content;
  padding: 2px 4px;
}

.feed-switch__btn {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.4);
  background: rgba(0, 255, 159, 0.1);
  color: #ddfff2;
  padding: 0 14px;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.feed-switch__btn:hover,
.feed-switch__btn.is-active {
  border-color: rgba(255, 0, 255, 0.78);
  background: rgba(255, 0, 255, 0.18);
  color: #ffe2ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.28);
}

.feed-mode-hint {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(231, 251, 255, 0.78);
}

.feed-stage {
  width: var(--feed-surface-width);
  height: calc(100vh - 56px - var(--feed-topbar-height));
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 0 10px;
  scrollbar-width: none;
  box-sizing: border-box;
}

.feed-stage::-webkit-scrollbar {
  display: none;
}

.feed-refresh-indicator {
  position: fixed;
  top: calc(var(--feed-topbar-height, 58px) + 8px);
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 35;
  width: max-content;
  max-width: min(92vw, 360px);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.38);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 0, 255, 0.20), transparent 64%),
    rgba(3, 9, 15, 0.86);
  color: #dffff4;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 22px rgba(0, 255, 159, 0.14);
  backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.feed-refresh-indicator.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.feed-refresh-indicator.is-active {
  border-color: rgba(255, 0, 255, 0.72);
  color: #fff2ff;
}

.feed-loading,
.feed-error,
.feed-empty {
  min-height: calc(100vh - 56px - var(--feed-topbar-height));
  display: grid;
  place-content: center;
  gap: 10px;
  color: var(--feed-text);
  text-align: center;
  padding: 18px;
}

.feed-empty__cta,
.feed-error button {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.38);
  background: linear-gradient(110deg, rgba(255, 0, 255, 0.75), rgba(0, 255, 159, 0.72));
  color: #050507;
  font-weight: 800;
  text-decoration: none;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.feed-card {
  min-height: calc(100vh - 56px - var(--feed-topbar-height));
  height: calc(100vh - 56px - var(--feed-topbar-height));
  position: relative;
  isolation: isolate;
  background: #050507;
}

.feed-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feed-media__asset {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #08080b;
}

.feed-photo {
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(900px 420px at 50% 50%, rgba(0, 255, 159, 0.09), transparent 70%),
    #06070b;
}

.feed-media__live {
  width: 100%;
  height: 100%;
  position: relative;
  display: grid;
  place-items: stretch;
}

.feed-media__live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 64, 128, 0.55);
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.92), rgba(255, 0, 255, 0.78));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(255, 0, 128, 0.45);
}

.feed-card--live .feed-media::after {
  opacity: 0.35;
}

.feed-actions {
  position: absolute;
  right: clamp(8px, 1.2vw, 18px);
  bottom: 132px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.feed-action {
  min-width: 44px;
  min-height: 44px;
  width: clamp(80px, 9vw, 92px);
  min-height: 76px;
  border: 1px solid rgba(106, 231, 195, 0.44);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(11, 18, 28, 0.94), rgba(3, 8, 13, 0.72)),
    radial-gradient(90px 100px at 20% 0%, rgba(255, 0, 255, 0.18), transparent 70%);
  color: #fff;
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 9px;
  cursor: pointer;
  backdrop-filter: blur(7px);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.feed-action:hover {
  transform: translateY(-2px);
}

.feed-action:focus-visible {
  outline: 2px solid rgba(0, 255, 159, 0.8);
  outline-offset: 2px;
}

.feed-action.is-active {
  border-color: rgba(255, 0, 255, 0.9);
  box-shadow:
    0 0 26px rgba(255, 0, 255, 0.43),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.feed-action--like.is-active {
  border-color: rgba(255, 64, 110, 0.95);
  background:
    linear-gradient(150deg, rgba(85, 8, 24, 0.96), rgba(45, 4, 14, 0.88)),
    radial-gradient(120px 120px at 50% 0%, rgba(255, 43, 94, 0.52), transparent 68%);
  box-shadow:
    0 0 34px rgba(255, 22, 79, 0.5),
    inset 0 0 0 1px rgba(255, 184, 205, 0.25);
}

.feed-action--like.is-active .feed-action__glyph {
  background: rgba(255, 41, 92, 0.95);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 237, 0.45);
}

.feed-action--like.is-active .feed-action__count {
  background: rgba(255, 41, 92, 0.24);
  border-color: rgba(255, 92, 136, 0.64);
  color: #ffd9e6;
}

.feed-action--comment.is-active {
  border-color: rgba(88, 200, 255, 0.9);
  background:
    linear-gradient(150deg, rgba(8, 36, 57, 0.95), rgba(4, 18, 30, 0.86)),
    radial-gradient(120px 120px at 50% 0%, rgba(88, 200, 255, 0.45), transparent 68%);
  box-shadow:
    0 0 26px rgba(84, 190, 255, 0.42),
    inset 0 0 0 1px rgba(201, 241, 255, 0.2);
}

.feed-action--comment.is-active .feed-action__glyph {
  background: rgba(70, 182, 245, 0.9);
  color: #fff;
}

.feed-action--like {
  border-color: rgba(255, 68, 212, 0.62);
}

.feed-action--comment {
  border-color: rgba(122, 205, 255, 0.56);
}

.feed-action--view {
  border-color: rgba(0, 255, 159, 0.55);
}

.feed-action--share {
  border-color: rgba(190, 157, 255, 0.54);
}

.feed-action--metric {
  cursor: default;
  gap: 8px;
}

.feed-action--metric:hover {
  transform: none;
}

.feed-action--metric .feed-action__label {
  margin-top: 4px;
}

.feed-action--metric .feed-action__count {
  min-width: 2.8em;
  font-size: 0.82rem;
}

.feed-action__glyph {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.05rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.feed-action--like .feed-action__glyph {
  color: #ff66e4;
  box-shadow: inset 0 0 0 1px rgba(255, 102, 228, 0.35);
}

.feed-action--comment .feed-action__glyph {
  color: #83d7ff;
  box-shadow: inset 0 0 0 1px rgba(131, 215, 255, 0.35);
}

.feed-action--view .feed-action__glyph {
  color: #74ffcb;
  box-shadow: inset 0 0 0 1px rgba(116, 255, 203, 0.35);
}

.feed-action--share .feed-action__glyph {
  color: #d7c4ff;
  box-shadow: inset 0 0 0 1px rgba(215, 196, 255, 0.35);
}

.feed-action__label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: rgba(231, 251, 255, 0.93);
}

.feed-action__count {
  min-width: 2.1em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #c5ffe8;
  background: rgba(0, 255, 159, 0.11);
  border: 1px solid rgba(0, 255, 159, 0.26);
  border-radius: 999px;
  padding: 1px 7px;
}

.feed-mute {
  min-width: 44px;
  min-height: 44px;
  position: absolute;
  left: 14px;
  bottom: 136px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
}

.feed-overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 0 16px 26px;
  color: var(--feed-text);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.08) 64%);
}

.feed-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  padding: 4px 6px 4px 0;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.feed-user:focus-visible {
  outline: 2px solid rgba(0, 255, 159, 0.75);
  outline-offset: 2px;
}

.feed-user.is-stats-open {
  background: rgba(0, 255, 159, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 159, 0.2);
}

.feed-user__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.68);
  object-fit: cover;
}

.feed-user__name {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--feed-green);
  font-weight: 800;
  text-decoration: none;
}

.feed-friend-btn {
  margin-left: auto;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.5);
  background: rgba(0, 0, 0, 0.35);
  color: var(--feed-text);
  padding: 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.feed-friend-btn.is-friends {
  border-color: rgba(0, 255, 159, 0.85);
  background: rgba(0, 255, 159, 0.16);
  color: var(--feed-green);
}

.feed-friend-btn.is-pending {
  border-color: rgba(255, 0, 255, 0.85);
  background: rgba(255, 0, 255, 0.16);
}

.feed-friend-btn.is-incoming {
  border-color: rgba(0, 255, 159, 0.95);
  background: rgba(0, 255, 159, 0.28);
  color: #032018;
}

.feed-friend-btn:disabled {
  opacity: 0.68;
  cursor: default;
}

.feed-more {
  margin-left: 8px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.feed-stats-dropdown {
  position: absolute;
  left: 12px;
  right: auto;
  bottom: 86px;
  z-index: 4;
  width: min(360px, calc(100% - 122px));
  max-width: calc(100% - 122px);
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 159, 0.34);
  background:
    linear-gradient(150deg, rgba(5, 14, 24, 0.95), rgba(2, 8, 14, 0.95)),
    radial-gradient(120px 120px at 80% 0%, rgba(255, 0, 255, 0.26), transparent 72%);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 26px rgba(0, 255, 159, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.feed-stats-dropdown__body {
  max-height: min(44vh, 370px);
  overflow-y: auto;
}

.feed-card--stats-open .feed-actions {
  opacity: 0.2;
  pointer-events: none;
  transform: translateX(4px);
}

.feed-stats-dropdown__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--feed-green);
}

.feed-stats-dropdown__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.feed-stats-dropdown__body {
  padding: 10px 12px;
  color: var(--feed-text);
  display: grid;
  gap: 9px;
}

.feed-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feed-stats-cell {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  padding: 8px;
  display: grid;
  gap: 4px;
}

.feed-stats-cell span {
  font-size: 0.74rem;
  color: rgba(231, 251, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feed-stats-cell strong {
  font-size: 1rem;
  color: #d9fff2;
}

.feed-stats-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.feed-stats-line span {
  color: rgba(231, 251, 255, 0.72);
}

.feed-stats-line strong {
  color: #fff;
}

.feed-stats-country h4 {
  margin: 2px 0 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(0, 255, 159, 0.9);
}

.feed-stats-country ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
}

.feed-stats-country li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.feed-stats-country li span:last-child {
  color: #c7ffe8;
}

.feed-stats-dropdown__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-stats-dropdown__refresh,
.feed-stats-dropdown__safety {
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.36);
  background: rgba(0, 255, 159, 0.12);
  color: var(--feed-green);
  font-weight: 800;
  cursor: pointer;
}

.feed-stats-dropdown__safety {
  border-color: rgba(255, 0, 255, 0.36);
  background: rgba(255, 0, 255, 0.12);
  color: #ffd5ff;
}

.feed-stats-dropdown__refresh:disabled,
.feed-stats-dropdown__safety:disabled {
  opacity: 0.55;
  cursor: default;
}

.feed-caption {
  margin: 0;
  color: var(--feed-text);
}

.feed-location {
  margin: 5px 0 0;
  color: var(--feed-muted);
  font-size: 0.9rem;
}

.feed-like-burst {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  color: #ff39d2;
  font-size: clamp(3rem, 7vw, 4.8rem);
  font-weight: 900;
  text-shadow: 0 0 22px rgba(255, 0, 255, 0.85);
  z-index: 3;
  pointer-events: none;
  animation: feed-like-burst 620ms ease-out forwards;
}

.feed-load-sentinel {
  min-height: 64px;
  display: grid;
  place-items: center;
  color: rgba(199, 247, 255, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.22);
}

.feed-load-sentinel.is-hidden {
  min-height: 6px;
  font-size: 0;
}

@keyframes feed-like-burst {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  24% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.35);
    opacity: 0;
  }
}

.comments-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.comments-modal.is-open {
  display: block;
}

.comments-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.comments-modal__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 500px);
  max-height: 78vh;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: var(--feed-panel);
  border: 1px solid rgba(0, 255, 159, 0.28);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.2);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.comments-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-modal__header h3 {
  margin: 0;
  color: var(--feed-green);
}

.comments-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.comments-modal__list {
  overflow-y: auto;
  padding: 12px 14px;
  color: var(--feed-text);
  display: grid;
  gap: 10px;
}

.comments-modal__meta {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 0.76rem;
  color: rgba(214, 255, 242, 0.84);
}

.comments-modal__reply {
  margin: 0 12px 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 255, 0.38);
  background: rgba(255, 0, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ffdfff;
  font-size: 0.78rem;
}

.comments-modal__reply button {
  border: 1px solid rgba(255, 192, 237, 0.36);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: #ffeef9;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-row {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 9px 10px;
}

.comment-row.is-reply {
  margin-left: calc(var(--comment-depth, 1) * 10px);
  border-color: rgba(0, 255, 159, 0.22);
  background: rgba(3, 20, 17, 0.36);
}

.comment-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-row__head strong {
  color: var(--feed-green);
  font-size: 0.84rem;
}

.comment-row__time {
  font-size: 0.7rem;
  color: rgba(222, 240, 255, 0.7);
}

.comment-row__text {
  margin: 6px 0 0;
  color: var(--feed-text);
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.comment-row__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-chip {
  border: 1px solid rgba(0, 255, 159, 0.3);
  border-radius: 999px;
  background: rgba(0, 255, 159, 0.08);
  color: #cbffe9;
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-chip__count {
  min-width: 1.6em;
  text-align: right;
}

.comment-chip--reply {
  border-color: rgba(120, 212, 255, 0.34);
  background: rgba(120, 212, 255, 0.1);
  color: #d9f4ff;
}

.comment-chip--dislike {
  border-color: rgba(255, 172, 94, 0.35);
  background: rgba(255, 172, 94, 0.12);
  color: #ffe7cc;
}

.comment-chip--report {
  border-color: rgba(255, 0, 255, 0.34);
  background: rgba(255, 0, 255, 0.12);
  color: #ffd7ff;
}

.comment-chip.is-active {
  border-color: rgba(0, 255, 159, 0.86);
  background: rgba(0, 255, 159, 0.22);
  color: #fff;
}

.comment-chip--report.is-active {
  border-color: rgba(255, 112, 196, 0.82);
  background: rgba(255, 112, 196, 0.24);
}

.comment-row__replies {
  margin-top: 8px;
  display: grid;
  gap: 7px;
}

.comments-modal__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-modal__form input {
  border: 1px solid rgba(255, 0, 255, 0.35);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  min-height: 40px;
  padding: 0 12px;
}

.comments-modal__form button {
  border: 1px solid rgba(0, 255, 159, 0.42);
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  background: rgba(0, 255, 159, 0.16);
  color: var(--feed-green);
  font-weight: 800;
  cursor: pointer;
}

.safety-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
}

.safety-modal.is-open {
  display: block;
}

.safety-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.safety-modal__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 500px);
  max-height: 84vh;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: rgba(5, 8, 14, 0.94);
  border: 1px solid rgba(255, 0, 255, 0.45);
  box-shadow: 0 0 34px rgba(255, 0, 255, 0.22);
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--feed-text);
}

.safety-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.safety-modal__header h3 {
  margin: 0;
  color: var(--feed-green);
}

.safety-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.safety-modal__body {
  display: grid;
  gap: 12px;
  padding: 12px 14px 18px;
}

.safety-modal__ai {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(231, 251, 255, 0.86);
}

.safety-modal__support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 159, 0.42);
  color: var(--feed-green);
  text-decoration: none;
  font-weight: 700;
  width: fit-content;
}

.safety-modal__support:hover,
.safety-modal__support:focus-visible {
  border-color: rgba(255, 0, 255, 0.55);
  color: #ffe8fb;
  outline: none;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: none;
}

.share-modal.is-open {
  display: block;
}

.share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.share-modal__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100vw, 460px);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: rgba(5, 8, 14, 0.96);
  border: 1px solid rgba(0, 255, 159, 0.34);
  box-shadow: 0 0 30px rgba(0, 255, 159, 0.18);
  color: var(--feed-text);
  padding: 12px 14px 18px;
}

.share-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.share-modal__header h3 {
  margin: 0;
  color: var(--feed-green);
}

.share-modal__close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.share-modal__hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--feed-muted);
}

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

.share-modal__channel {
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(160, 227, 255, 0.22);
  background: rgba(8, 15, 24, 0.88);
  color: #e8f4ff;
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: start;
  padding: 8px 10px;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.share-modal__channel strong {
  font-size: 0.86rem;
}

.share-modal__channel span {
  font-size: 0.72rem;
  color: rgba(231, 251, 255, 0.72);
}

.share-modal__channel:hover,
.share-modal__channel:focus-visible {
  border-color: rgba(255, 0, 255, 0.55);
  background: rgba(255, 0, 255, 0.12);
  outline: none;
}

.share-modal__feedback {
  margin: 10px 0 0;
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--feed-green);
}

.safety-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.safety-quick {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 159, 0.4);
  background: rgba(0, 255, 159, 0.08);
  color: var(--feed-green);
  font-weight: 700;
  cursor: pointer;
}

.safety-report-form {
  display: grid;
  gap: 7px;
}

.safety-report-form label {
  font-size: 0.85rem;
  color: var(--feed-muted);
}

.safety-report-form select,
.safety-report-form textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 0, 255, 0.36);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 11px;
}

.safety-report-form textarea {
  min-height: 86px;
  resize: vertical;
}

.safety-submit {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.5);
  background: rgba(255, 0, 255, 0.2);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.safety-feedback {
  min-height: 18px;
  margin: 0;
  font-size: 0.82rem;
  color: #ffd5f7;
}

@media (max-width: 760px) {
  .feed-shell {
    --feed-surface-width: 100vw;
    --feed-topbar-height: 64px;
    min-height: calc(100vh - 54px);
  }

  .feed-topbar {
    width: 100vw;
    padding: 8px 8px 6px;
    border-radius: 0;
  }

  .feed-stage,
  .feed-card {
    width: 100vw;
    height: calc(100vh - 54px - var(--feed-topbar-height));
    min-height: calc(100vh - 54px - var(--feed-topbar-height));
  }

  .feed-actions {
    right: 8px;
    bottom: 114px;
    gap: 8px;
  }

  .feed-action {
    width: 76px;
    min-height: 68px;
    border-radius: 12px;
    padding: 6px 3px 7px;
  }

  .feed-action__glyph {
    width: 27px;
    height: 27px;
    font-size: 0.98rem;
  }

  .feed-action__label {
    font-size: 0.64rem;
  }

  .feed-action__count {
    font-size: 0.7rem;
    padding: 1px 6px;
  }

  .feed-stats-dropdown {
    left: 8px;
    right: auto;
    bottom: 74px;
    width: min(320px, calc(100% - 96px));
    max-width: calc(100% - 96px);
  }

  .feed-stats-grid {
    grid-template-columns: 1fr;
  }

  .feed-stats-dropdown__actions {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 560px) {
  .feed-shell {
    --feed-topbar-height: 70px;
  }

  .feed-stats-dropdown {
    left: 8px;
    right: 8px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }

  .feed-stats-dropdown__body {
    max-height: min(52vh, 320px);
  }

}

/* === PAGE-LEVEL CYBER POLISH: /feed === */
:root {
  --feed-bg: var(--ss-bg);
  --feed-panel: rgba(7, 12, 24, 0.9);
  --feed-text: var(--ss-text);
  --feed-muted: rgba(220, 233, 246, 0.82);
  --feed-pink: var(--ss-magenta);
  --feed-green: var(--ss-green);
}

.feed-shell {
  --feed-surface-width: min(100vw, 790px);
  --feed-topbar-height: 228px;
  background:
    radial-gradient(950px 380px at 16% 0%, rgba(255, 43, 214, 0.2), transparent 60%),
    radial-gradient(880px 420px at 86% 0%, rgba(0, 255, 157, 0.16), transparent 62%),
    var(--feed-bg);
}

.feed-shell.feed-shell--with-reco {
  --feed-topbar-height: 306px;
}

.feed-shell.feed-shell--with-algo {
  --feed-topbar-height: 676px;
}

.feed-shell.feed-shell--with-reco.feed-shell--with-algo {
  --feed-topbar-height: 748px;
}

.feed-topbar {
  width: var(--feed-surface-width);
  min-height: var(--feed-topbar-height);
  padding: 12px 14px 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(160, 227, 255, 0.26);
  background:
    linear-gradient(158deg, rgba(168, 85, 247, 0.13), rgba(0, 245, 255, 0.08) 44%, rgba(4, 8, 16, 0.95) 100%),
    rgba(4, 8, 16, 0.9);
  box-shadow: var(--ss-shadow), var(--ss-glow-purple);
}

.feed-headline {
  display: grid;
  gap: 4px;
}

.feed-headline__kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.86);
}

.feed-headline__title {
  margin: 0;
  font-size: clamp(1.24rem, 2.7vw, 1.62rem);
  letter-spacing: 0.07em;
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 43, 214, 0.34), 0 0 20px rgba(0, 245, 255, 0.26);
}

.feed-headline__sub {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(226, 239, 252, 0.8);
}

.feed-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-filter-btn {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.34);
  background: rgba(8, 15, 24, 0.78);
  color: rgba(227, 242, 255, 0.92);
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.feed-filter-btn:hover,
.feed-filter-btn:focus-visible,
.feed-filter-btn.is-active {
  border-color: rgba(255, 43, 214, 0.66);
  background: rgba(255, 43, 214, 0.16);
  color: #ffe6fb;
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.24);
}

.feed-switch__btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(160, 227, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.018);
  color: #b6c7dc;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.feed-switch__btn:hover,
.feed-switch__btn:focus-visible {
  border-color: rgba(0, 255, 159, 0.36);
  background:
    linear-gradient(100deg, rgba(0, 255, 159, 0.12), rgba(255, 0, 255, 0.11)),
    rgba(10, 14, 24, 0.92);
  color: #f3f7ff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 0 22px rgba(0, 255, 159, 0.16);
  outline: none;
}

.feed-switch__btn.is-active {
  color: #fff;
  border-color: rgba(255, 142, 244, 0.52);
  background:
    linear-gradient(110deg, rgba(129, 79, 255, 0.96), rgba(255, 60, 178, 0.92)),
    rgba(255, 0, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 26px rgba(255, 0, 255, 0.25),
    0 0 40px rgba(0, 255, 159, 0.08);
}

.feed-composer {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 255, 0.3);
  background:
    linear-gradient(150deg, rgba(7, 16, 28, 0.9), rgba(4, 10, 18, 0.86)),
    rgba(4, 10, 18, 0.8);
}

.feed-composer__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 157, 0.84);
}

.feed-composer__row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.feed-composer__input {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 8, 15, 0.88);
  color: rgba(234, 245, 255, 0.9);
  padding: 0 13px;
  font-size: 0.88rem;
}

.feed-composer__send {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 43, 214, 0.6);
  background: linear-gradient(120deg, rgba(168, 85, 247, 0.82), rgba(255, 43, 214, 0.86));
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.feed-composer__send:hover,
.feed-composer__send:focus-visible {
  border-color: rgba(0, 255, 157, 0.65);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.25);
}

.feed-composer__meta {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(201, 218, 236, 0.74);
}

.feed-mode-hint {
  font-size: 0.75rem;
  color: rgba(210, 229, 243, 0.76);
}

.feed-reco[hidden] {
  display: none !important;
}

.feed-reco {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  background:
    linear-gradient(140deg, rgba(12, 18, 30, 0.9), rgba(8, 12, 22, 0.92)),
    rgba(6, 10, 18, 0.86);
}

.feed-reco__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 245, 255, 0.86);
}

.feed-reco__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.feed-reco__list::-webkit-scrollbar {
  display: none;
}

.feed-reco__item {
  min-width: 148px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: rgba(8, 12, 20, 0.84);
  color: #f4f6ff;
  text-decoration: none;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.feed-reco__item:hover,
.feed-reco__item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 157, 0.68);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.24);
}

.feed-reco__avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feed-reco__identity {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.feed-reco__name,
.feed-reco__handle,
.feed-reco__score {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-reco__name {
  font-size: 0.78rem;
  line-height: 1.1;
}

.feed-reco__handle {
  font-size: 0.68rem;
  color: rgba(205, 218, 236, 0.8);
}

.feed-reco__score {
  font-size: 0.64rem;
  color: rgba(0, 255, 157, 0.86);
  font-weight: 700;
}

.feed-algo[hidden] {
  display: none !important;
}

.feed-algo {
  display: grid;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  background:
    linear-gradient(160deg, rgba(6, 12, 22, 0.92), rgba(4, 9, 18, 0.9)),
    rgba(5, 9, 18, 0.86);
}

.feed-algo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feed-algo__label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 43, 214, 0.9);
}

.feed-algo__refresh {
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(160, 227, 255, 0.34);
  background: rgba(10, 18, 28, 0.86);
  color: rgba(230, 243, 255, 0.92);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}

.feed-algo__refresh:hover,
.feed-algo__refresh:focus-visible {
  border-color: rgba(255, 43, 214, 0.65);
  box-shadow: 0 0 14px rgba(255, 43, 214, 0.24);
}

.feed-algo__body {
  display: grid;
  gap: 8px;
  font-size: 0.78rem;
  max-height: 180px;
  overflow-y: auto;
}

.feed-algo__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.feed-algo__trend {
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 8, 14, 0.76);
}

.feed-algo__trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-algo__trend-head strong {
  font-size: 0.72rem;
  color: rgba(240, 248, 255, 0.95);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feed-algo__trend-head small {
  color: rgba(191, 209, 231, 0.76);
  font-size: 0.64rem;
}

.feed-algo__sparkline {
  width: 100%;
  height: 56px;
  overflow: visible;
}

.feed-algo__spark-area {
  fill: rgba(168, 85, 247, 0.16);
}

.feed-algo__spark-line {
  fill: none;
  stroke: rgba(0, 255, 157, 0.92);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feed-algo__sparkline circle {
  fill: rgba(255, 43, 214, 0.92);
}

.feed-algo__trend-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.feed-algo__trend-legend span {
  font-size: 0.58rem;
  color: rgba(193, 211, 230, 0.8);
  letter-spacing: 0.02em;
}

.feed-algo__pill {
  border-radius: 10px;
  border: 1px solid rgba(160, 227, 255, 0.24);
  background: rgba(3, 8, 14, 0.78);
  padding: 6px 7px;
  display: grid;
  gap: 1px;
}

.feed-algo__pill span {
  font-size: 0.62rem;
  color: rgba(198, 214, 232, 0.78);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-algo__pill strong {
  font-size: 0.76rem;
  color: rgba(244, 249, 255, 0.95);
}

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

.feed-algo__section {
  display: grid;
  gap: 6px;
}

.feed-algo__section h4 {
  margin: 0;
  font-size: 0.66rem;
  color: rgba(198, 214, 232, 0.86);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feed-algo__metric {
  display: grid;
  gap: 3px;
}

.feed-algo__metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.feed-algo__metric-row span {
  color: rgba(206, 220, 236, 0.9);
}

.feed-algo__metric-row strong {
  color: rgba(0, 255, 157, 0.9);
}

.feed-algo__bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.feed-algo__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.9), rgba(0, 255, 157, 0.9));
}

.feed-algo__top {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.feed-algo__top li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 6, 12, 0.72);
  padding: 5px 7px;
}

.feed-algo__top li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(230, 240, 252, 0.9);
}

.feed-algo__top li strong {
  color: rgba(255, 223, 247, 0.95);
}

.feed-algo__top li em {
  grid-column: 1 / -1;
  font-style: normal;
  color: rgba(178, 196, 217, 0.74);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
}

.feed-algo__empty {
  margin: 0;
  color: rgba(197, 213, 233, 0.8);
}

.feed-stage {
  width: var(--feed-surface-width);
  height: calc(100vh - 56px - var(--feed-topbar-height) - 14px);
  padding: 10px 6px 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.feed-loading,
.feed-error,
.feed-empty {
  min-height: max(320px, calc(100vh - 56px - var(--feed-topbar-height) - 26px));
}

.feed-card {
  min-height: max(460px, calc(100vh - 56px - var(--feed-topbar-height) - 30px));
  height: max(460px, calc(100vh - 56px - var(--feed-topbar-height) - 30px));
  border-radius: 18px;
  border: 1px solid rgba(160, 227, 255, 0.24);
  box-shadow: var(--ss-shadow);
  overflow: hidden;
}

.feed-overlay {
  left: 10px;
  right: 10px;
  bottom: 10px;
  inset: auto 10px 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 227, 255, 0.24);
  background:
    linear-gradient(160deg, rgba(8, 16, 28, 0.92), rgba(5, 11, 20, 0.88)),
    rgba(4, 9, 16, 0.78);
  backdrop-filter: blur(8px);
}

.feed-user {
  margin-bottom: 8px;
}

.feed-user__name {
  color: rgba(0, 255, 157, 0.96);
}

.feed-intel-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.feed-intel-meta__item {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 7, 13, 0.82);
  padding: 6px 8px;
  display: grid;
  gap: 2px;
}

.feed-intel-meta__key {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(189, 209, 226, 0.8);
}

.feed-intel-meta__value {
  font-size: 0.78rem;
  color: #f6fbff;
}

.feed-intel-meta__item--high {
  border-color: rgba(0, 255, 157, 0.58);
  background: rgba(0, 255, 157, 0.12);
}

.feed-intel-meta__item--medium {
  border-color: rgba(0, 245, 255, 0.52);
  background: rgba(0, 245, 255, 0.1);
}

.feed-intel-meta__item--low {
  border-color: rgba(255, 43, 214, 0.52);
  background: rgba(255, 43, 214, 0.1);
}

.feed-explain {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.feed-explain__toggle {
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.5);
  background: rgba(168, 85, 247, 0.14);
  color: rgba(242, 231, 255, 0.96);
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  justify-self: start;
}

.feed-explain__toggle:hover,
.feed-explain__toggle:focus-visible {
  border-color: rgba(255, 77, 157, 0.68);
  box-shadow: 0 0 14px rgba(255, 77, 157, 0.24);
}

.feed-explain__panel {
  border-radius: 10px;
  border: 1px solid rgba(160, 227, 255, 0.24);
  background: rgba(2, 7, 13, 0.76);
  padding: 7px 8px;
  display: grid;
  gap: 5px;
  max-height: 124px;
  overflow-y: auto;
}

.feed-explain__summary {
  margin: 0;
  color: rgba(218, 233, 247, 0.9);
  font-size: 0.71rem;
}

.feed-explain__score {
  margin: 0;
  font-size: 0.71rem;
  color: rgba(227, 239, 252, 0.88);
}

.feed-explain__score strong {
  color: rgba(0, 255, 157, 0.92);
}

.feed-explain__rows {
  display: grid;
  gap: 4px;
}

.feed-explain__row {
  display: grid;
  gap: 3px;
}

.feed-explain__row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.66rem;
}

.feed-explain__row-head span {
  color: rgba(193, 210, 232, 0.86);
}

.feed-explain__row-head strong {
  color: rgba(241, 249, 255, 0.95);
}

.feed-explain__bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.feed-explain__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.86), rgba(0, 255, 157, 0.9));
}

.feed-explain__row p {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(184, 202, 224, 0.78);
}

.feed-caption,
.feed-location {
  font-size: 0.84rem;
}

.feed-actions {
  right: 10px;
  bottom: 152px;
  gap: 9px;
}

.feed-action {
  width: 58px;
  min-height: 58px;
  border-radius: 999px;
  padding: 5px;
  gap: 2px;
}

.feed-action__glyph {
  width: 26px;
  height: 26px;
  font-size: 0.92rem;
}

.feed-action__label {
  font-size: 0.56rem;
}

.feed-action__count {
  font-size: 0.64rem;
  min-width: 2em;
}

.feed-action--metric {
  min-height: 62px;
}

.feed-empty h2 {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-empty p {
  margin: 0;
}

@media (max-width: 1024px) {
  .feed-shell {
    --feed-surface-width: min(100vw, 700px);
    --feed-topbar-height: 226px;
  }

  .feed-shell.feed-shell--with-reco {
    --feed-topbar-height: 296px;
  }

  .feed-shell.feed-shell--with-algo {
    --feed-topbar-height: 656px;
  }

  .feed-shell.feed-shell--with-reco.feed-shell--with-algo {
    --feed-topbar-height: 724px;
  }
}

@media (max-width: 768px) {
  .feed-shell {
    --feed-surface-width: 100vw;
    --feed-topbar-height: 214px;
  }

  .feed-shell.feed-shell--with-reco {
    --feed-topbar-height: 282px;
  }

  .feed-shell.feed-shell--with-algo {
    --feed-topbar-height: 622px;
  }

  .feed-shell.feed-shell--with-reco.feed-shell--with-algo {
    --feed-topbar-height: 686px;
  }

  .feed-topbar {
    border-radius: 0 0 16px 16px;
    padding: 10px 10px 8px;
    gap: 8px;
  }

  .feed-headline__sub {
    font-size: 0.8rem;
  }

  .feed-composer {
    padding: 8px 9px;
  }

  .feed-composer__meta {
    display: none;
  }

  .feed-stage {
    width: 100vw;
    height: calc(100vh - 54px - var(--feed-topbar-height));
    padding: 8px 4px 16px;
    gap: 10px;
  }

  .feed-card {
    min-height: max(430px, calc(100vh - 54px - var(--feed-topbar-height) - 18px));
    height: max(430px, calc(100vh - 54px - var(--feed-topbar-height) - 18px));
    border-radius: 14px;
  }

  .feed-empty,
  .feed-error,
  .feed-loading {
    place-content: end center;
    padding: 26px 16px 184px;
  }

  .feed-actions {
    bottom: 138px;
    right: 8px;
  }

  .feed-action {
    width: 54px;
    min-height: 54px;
  }

  .feed-intel-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-reco__item {
    min-width: 136px;
  }

  .feed-algo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-algo__trend-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .feed-shell {
    --feed-topbar-height: 204px;
  }

  .feed-shell.feed-shell--with-reco {
    --feed-topbar-height: 264px;
  }

  .feed-shell.feed-shell--with-algo {
    --feed-topbar-height: 590px;
  }

  .feed-shell.feed-shell--with-reco.feed-shell--with-algo {
    --feed-topbar-height: 648px;
  }

  .feed-headline__kicker {
    font-size: 0.66rem;
  }

  .feed-headline__title {
    font-size: 1.08rem;
  }

  .feed-headline__sub {
    display: none;
  }

  .feed-composer__label {
    font-size: 0.67rem;
  }

  .feed-composer__input,
  .feed-composer__send {
    min-height: 36px;
  }

  .feed-composer__input {
    font-size: 0.8rem;
  }

  .feed-mode-hint {
    font-size: 0.69rem;
  }

  .feed-reco {
    padding: 7px 8px;
  }

  .feed-reco__item {
    min-width: 124px;
    grid-template-columns: 30px 1fr;
    gap: 6px;
    padding: 6px;
  }

  .feed-reco__avatar {
    width: 30px;
    height: 30px;
  }

  .feed-algo {
    padding: 7px 8px;
    gap: 7px;
  }

  .feed-algo__label {
    font-size: 0.64rem;
  }

  .feed-algo__refresh {
    min-height: 26px;
    font-size: 0.63rem;
    padding: 0 8px;
  }

  .feed-algo__trend-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-explain__panel {
    max-height: 116px;
  }

  .feed-actions {
    bottom: 130px;
  }

  .feed-empty,
  .feed-error,
  .feed-loading {
    padding-bottom: 196px;
  }

  .feed-action {
    width: 50px;
    min-height: 50px;
  }

  .feed-action__label {
    display: none;
  }

  .feed-action__count {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
}

/* Normal media feed: compact header, clean cards, TikTok-style actions. */
.feed-shell {
  --feed-surface-width: min(100vw, 620px);
  --feed-topbar-height: 168px;
  min-height: calc(100vh - 56px);
  background:
    radial-gradient(780px 280px at 18% 0%, rgba(255, 0, 255, 0.16), transparent 64%),
    radial-gradient(740px 300px at 82% 0%, rgba(0, 255, 159, 0.13), transparent 64%),
    #020205;
}

.feed-topbar {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  padding: 12px;
  border-radius: 0 0 18px 18px;
  border-color: rgba(0, 255, 159, 0.22);
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.98), rgba(4, 8, 15, 0.9)),
    radial-gradient(360px 150px at 18% 0%, rgba(255, 0, 255, 0.18), transparent 72%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.feed-headline {
  min-width: 0;
}

.feed-headline__kicker {
  letter-spacing: 0.08em;
}

.feed-headline__title {
  font-size: clamp(1.28rem, 2.2vw, 1.72rem);
  letter-spacing: 0;
}

.feed-headline__sub {
  max-width: 42ch;
}

.feed-switch {
  justify-content: flex-start;
}

.feed-switch__btn {
  min-width: 74px;
  min-height: 36px;
}

.feed-composer {
  grid-column: 1 / -1;
  padding: 9px;
  border-radius: 12px;
}

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

.feed-tag-rail {
  grid-column: 1 / -1;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-tag-rail::-webkit-scrollbar {
  display: none;
}

.feed-tag-rail span {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 0, 255, 0.28);
  background: rgba(255, 0, 255, 0.08);
  color: #ffd8ff;
  padding: 5px 10px;
  font-size: 0.74rem;
  font-weight: 800;
}

.feed-stage {
  height: calc(100vh - 56px - var(--feed-topbar-height));
  padding: 8px 0 18px;
  gap: 10px;
}

.feed-card {
  min-height: max(540px, calc(100vh - 56px - var(--feed-topbar-height) - 18px));
  height: max(540px, calc(100vh - 56px - var(--feed-topbar-height) - 18px));
  border-radius: 16px;
}

.feed-overlay {
  right: 82px;
  padding: 12px 13px;
}

.feed-card-meta {
  margin: 0 0 7px;
  color: rgba(209, 228, 241, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.feed-discovery-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(360px, 78vw);
  margin: 0 0 9px;
}

.feed-discovery-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid rgba(47, 232, 255, 0.3);
  border-radius: 999px;
  background: rgba(5, 11, 22, 0.72);
  color: rgba(231, 248, 255, 0.86);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.feed-discovery-tags .feed-discovery-tags__category {
  border-color: rgba(0, 255, 159, 0.42);
  color: #d8fff0;
  background: rgba(0, 255, 159, 0.13);
}

.feed-discovery-tags .feed-discovery-tags__language {
  border-color: rgba(255, 214, 102, 0.5);
  color: #ffeeb0;
  background: rgba(255, 214, 102, 0.12);
}

.feed-live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(360px, 78vw);
  margin: 0 0 9px;
}

.feed-live-stats__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid rgba(0, 255, 159, 0.28);
  border-radius: 8px;
  background: rgba(3, 13, 16, 0.72);
  color: #e8fff8;
  box-shadow: 0 0 16px rgba(0, 255, 159, 0.08);
}

.feed-live-stats__pill small {
  color: rgba(209, 228, 241, 0.68);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.feed-live-stats__pill strong {
  color: #00ff9f;
  font-size: 0.78rem;
  font-weight: 900;
}

.feed-actions {
  right: 12px;
  bottom: 130px;
  gap: 10px;
}

.feed-action {
  width: 58px;
  min-height: 58px;
  border-radius: 999px;
  padding: 5px;
}

.feed-action__count:empty {
  display: none;
}

.feed-action--save {
  border-color: rgba(0, 255, 159, 0.52);
}

.feed-action--save .feed-action__glyph {
  color: #a8ffd9;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 159, 0.34);
}

.feed-action--save.is-active {
  border-color: rgba(0, 255, 159, 0.92);
  background:
    linear-gradient(150deg, rgba(0, 62, 42, 0.96), rgba(2, 30, 22, 0.9)),
    radial-gradient(120px 120px at 50% 0%, rgba(0, 255, 159, 0.45), transparent 68%);
  box-shadow: 0 0 28px rgba(0, 255, 159, 0.36);
}

.feed-action--stats {
  border-color: rgba(108, 211, 255, 0.58);
}

.feed-action--stats .feed-action__glyph {
  color: #a9e7ff;
  box-shadow: inset 0 0 0 1px rgba(108, 211, 255, 0.36);
}

.feed-action--report {
  border-color: rgba(255, 87, 167, 0.54);
}

.feed-action--report .feed-action__glyph {
  color: #ff9fd3;
  box-shadow: inset 0 0 0 1px rgba(255, 87, 167, 0.38);
}

.feed-action--report:hover,
.feed-action--report:focus-visible {
  border-color: rgba(255, 0, 255, 0.8);
  box-shadow: 0 0 22px rgba(255, 0, 255, 0.22);
}

.feed-action--delete {
  border-color: rgba(255, 0, 255, 0.65);
}

.feed-action--delete .feed-action__glyph {
  color: #ffe6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 255, 0.5);
}

.feed-action--delete:hover,
.feed-action--delete:focus-visible {
  border-color: rgba(0, 255, 159, 0.82);
  box-shadow: 0 0 22px rgba(0, 255, 159, 0.2);
}

.feed-stats-dropdown {
  left: 12px;
  bottom: 78px;
  width: min(360px, calc(100% - 112px));
}

@media (max-width: 768px) {
  .feed-shell {
    --feed-surface-width: 100vw;
    --feed-topbar-height: 152px;
  }

  .feed-topbar {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 0 0 14px 14px;
  }

  .feed-headline__sub {
    display: none;
  }

  .feed-switch {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-switch__btn {
    min-width: 0;
  }

  .feed-composer__meta,
  .feed-composer__label {
    display: none;
  }

  .feed-composer__input,
  .feed-composer__send {
    min-height: 36px;
  }

  .feed-stage {
    width: 100vw;
    height: calc(100vh - 54px - var(--feed-topbar-height));
    padding: 6px 4px 16px;
  }

  .feed-card {
    min-height: max(460px, calc(100vh - 54px - var(--feed-topbar-height) - 16px));
    height: max(460px, calc(100vh - 54px - var(--feed-topbar-height) - 16px));
    border-radius: 14px;
  }

  .feed-overlay {
    left: 8px;
    right: 72px;
    bottom: 8px;
    padding: 10px;
  }

  .feed-actions {
    right: 8px;
    bottom: 96px;
    gap: 8px;
  }

  .feed-action {
    width: 52px;
    min-height: 52px;
  }

  .feed-action__label {
    display: none;
  }

  .feed-stats-dropdown {
    left: 8px;
    right: 72px;
    width: auto;
    max-width: none;
    bottom: 70px;
  }
}

@media (max-width: 430px) {
  .feed-shell {
    --feed-topbar-height: 144px;
  }

  .feed-tag-rail span {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .feed-composer__input {
    font-size: 0.78rem;
  }

  .feed-action {
    width: 48px;
    min-height: 48px;
  }

  .feed-action__glyph {
    width: 24px;
    height: 24px;
  }
}

.feed-shell {
  background:
    radial-gradient(circle at 10% 4%, rgba(160, 32, 255, 0.16), transparent 34%),
    radial-gradient(circle at 90% 96%, rgba(0, 255, 156, 0.09), transparent 34%),
    var(--feed-bg);
}

.feed-headline__title::after {
  content: "  |  NO TRANSMISSIONS DETECTED";
  display: inline-block;
  margin-left: 8px;
  font-family: var(--ss-mono-font);
  font-size: 0.58em;
  letter-spacing: 0.08em;
  color: rgba(179, 198, 220, 0.76);
  vertical-align: middle;
}

/* === Gothic Fine Tune: Feed === */
.feed-shell {
  background:
    radial-gradient(circle at 12% 6%, rgba(122, 92, 255, 0.24), transparent 42%),
    radial-gradient(circle at 88% 92%, rgba(255, 77, 157, 0.16), transparent 40%),
    linear-gradient(180deg, #05070b 0%, #080b14 44%, #05070b 100%);
}

.feed-topbar,
.feed-composer {
  border-color: rgba(168, 85, 247, 0.34);
  background:
    linear-gradient(160deg, rgba(122, 92, 255, 0.16), rgba(255, 77, 157, 0.12), rgba(7, 10, 18, 0.94));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.48), 0 0 20px rgba(168, 85, 247, 0.18);
}

.feed-headline__kicker {
  color: rgba(216, 180, 254, 0.92);
}

.feed-headline__title {
  text-shadow: 0 0 16px rgba(168, 85, 247, 0.32), 0 0 18px rgba(255, 77, 157, 0.28);
}

.feed-switch__btn {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(168, 85, 247, 0.14);
  color: #ecdfff;
}

.feed-switch__btn:hover,
.feed-switch__btn.is-active {
  border-color: rgba(255, 77, 157, 0.66);
  background: rgba(255, 77, 157, 0.2);
  color: #fff2fb;
}

.feed-card {
  border-color: rgba(168, 85, 247, 0.34);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.56), 0 0 24px rgba(168, 85, 247, 0.2);
}

.feed-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.1) 0%, rgba(5, 7, 11, 0.42) 62%, rgba(5, 7, 11, 0.8) 100%),
    radial-gradient(circle at 50% 48%, transparent 46%, rgba(6, 8, 14, 0.46) 100%);
}

.feed-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(transparent 46%, rgba(255, 255, 255, 0.012) 50%, transparent 54%);
  background-size: 100% 7px;
  opacity: 0.42;
}

.feed-overlay {
  z-index: 3;
  border-color: rgba(168, 85, 247, 0.3);
  background:
    linear-gradient(160deg, rgba(122, 92, 255, 0.16), rgba(255, 77, 157, 0.12), rgba(6, 8, 14, 0.95));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.44);
}

.feed-user__name {
  color: #f4e6ff;
  font-weight: 800;
}

.feed-actions {
  z-index: 4;
  gap: 10px;
}

.feed-action {
  border-color: rgba(168, 85, 247, 0.46);
  background:
    linear-gradient(150deg, rgba(7, 10, 18, 0.94), rgba(7, 10, 18, 0.78)),
    radial-gradient(80px 80px at 50% 0%, rgba(255, 77, 157, 0.2), transparent 70%);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(168, 85, 247, 0.14);
}

.feed-action:focus-visible,
.feed-action.is-active {
  outline: 2px solid rgba(168, 85, 247, 0.72);
}

.feed-action--view,
.feed-action--share,
.feed-action--gift,
.feed-action--comment {
  border-color: rgba(168, 85, 247, 0.48);
}

.feed-intel-meta__item--high,
.feed-intel-meta__item--medium,
.feed-intel-meta__item--low {
  border-color: rgba(168, 85, 247, 0.42);
  background: rgba(168, 85, 247, 0.14);
}

.feed-intel-meta__value {
  color: #f3e8ff;
}

.feed-composer__send {
  background: linear-gradient(130deg, #7a5cff, #a855f7 48%, #ff4d9d);
  color: #fff6fe;
}

/* Final feed pass: keep the member feed clean instead of the old signalboard state. */
.feed-headline__title::after {
  content: none;
  display: none;
}

.feed-shell {
  --feed-surface-width: min(100vw, 620px);
  --feed-topbar-height: 168px;
  background:
    radial-gradient(780px 280px at 18% 0%, rgba(255, 0, 255, 0.16), transparent 64%),
    radial-gradient(740px 300px at 82% 0%, rgba(0, 255, 159, 0.13), transparent 64%),
    #020205;
}

.feed-topbar,
.feed-composer {
  border-color: rgba(0, 255, 159, 0.24);
  background:
    linear-gradient(180deg, rgba(3, 6, 12, 0.98), rgba(4, 8, 15, 0.9)),
    radial-gradient(360px 150px at 18% 0%, rgba(255, 0, 255, 0.18), transparent 72%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.feed-headline__kicker {
  color: rgba(0, 255, 159, 0.88);
}

.feed-headline__title {
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 0, 255, 0.3), 0 0 18px rgba(0, 255, 159, 0.2);
}

.feed-switch__btn {
  border-color: rgba(0, 255, 159, 0.34);
  background: rgba(0, 255, 159, 0.1);
  color: #dffff2;
}

.feed-switch__btn:hover,
.feed-switch__btn.is-active {
  border-color: rgba(255, 0, 255, 0.7);
  background: rgba(255, 0, 255, 0.18);
  color: #fff0ff;
}

.feed-card {
  border-color: rgba(0, 255, 159, 0.2);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.52), 0 0 22px rgba(0, 255, 159, 0.08);
}

.feed-overlay {
  border-color: rgba(0, 255, 159, 0.2);
  background:
    linear-gradient(160deg, rgba(5, 12, 18, 0.92), rgba(6, 8, 14, 0.94)),
    radial-gradient(240px 150px at 8% 0%, rgba(255, 0, 255, 0.14), transparent 70%);
}

.feed-user__name {
  color: rgba(0, 255, 159, 0.96);
}

.feed-action {
  background:
    linear-gradient(150deg, rgba(7, 10, 18, 0.94), rgba(7, 10, 18, 0.78)),
    radial-gradient(80px 80px at 50% 0%, rgba(255, 0, 255, 0.18), transparent 70%);
}

.feed-action:focus-visible,
.feed-action.is-active {
  outline: 2px solid rgba(0, 255, 159, 0.72);
}

.feed-action--comment {
  border-color: rgba(122, 205, 255, 0.56);
}

.feed-action--save {
  border-color: rgba(0, 255, 159, 0.52);
}

.feed-action--stats {
  border-color: rgba(108, 211, 255, 0.58);
}

.feed-action--report {
  border-color: rgba(255, 87, 167, 0.54);
}

.feed-action--delete {
  border-color: rgba(255, 0, 255, 0.65);
}

.feed-composer__send {
  background: linear-gradient(120deg, rgba(255, 0, 255, 0.84), rgba(0, 255, 159, 0.78));
  color: #050507;
}

/* Fixed feed viewport: the page itself never scrolls; the feed lane does. */
body.ss-feed-body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.ss-feed-body main,
body.ss-feed-body .su-shell,
body.ss-feed-body .su-main,
body.ss-feed-body .su-content,
body.ss-feed-body .su-content-grid,
body.ss-feed-body .su-content-main,
body.ss-feed-body .su-shell-page-view,
body.ss-feed-body .feed-layout,
body.ss-feed-body .feed-shell,
body.ss-feed-body .feed-stage {
  min-height: 0;
}

body.ss-feed-body main {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.ss-feed-body main > .su-shell {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

body.ss-feed-body .ss-legal-footer {
  display: none !important;
}

body.ss-feed-body .su-shell {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.ss-feed-body .su-sidebar {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ss-feed-body .su-main {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.ss-feed-body .su-topbar {
  position: relative;
  top: auto;
  flex: 0 0 auto;
}

body.ss-feed-body .su-content {
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body.ss-feed-body .su-shell-page-view {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

body.ss-feed-body .su-content-grid,
body.ss-feed-body .su-content-main {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.ss-feed-body .su-content-grid {
  flex: 1 1 auto;
}

body.ss-feed-body .su-content-main {
  flex: 1 1 auto;
}

body.ss-feed-body .su-offer-rail {
  display: none !important;
}

body.ss-feed-body .feed-layout {
  --feed-surface-width: min(620px, 100%);
  --feed-rail-width: min(300px, max(0px, calc((100% - var(--feed-surface-width)) / 2 - 12px)));
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, var(--feed-rail-width)) minmax(0, var(--feed-surface-width)) minmax(0, var(--feed-rail-width));
  justify-content: center;
  align-items: stretch;
  gap: clamp(10px, 1.2vw, 16px);
  padding: clamp(8px, 1vw, 12px) clamp(10px, 1.2vw, 16px) 0;
  box-sizing: border-box;
  overflow: hidden;
}

body.ss-feed-body .feed-shell {
  --feed-topbar-height: 56px;
  --feed-card-height: max(480px, calc(100% - var(--feed-topbar-height) - 8px));
  width: 100%;
  max-width: var(--feed-surface-width);
  height: 100%;
  max-height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  overscroll-behavior: contain;
}

body.ss-feed-body .feed-stage {
  scrollbar-width: none;
}

body.ss-feed-body .feed-stage::-webkit-scrollbar {
  display: none;
}

body.ss-feed-body .feed-ad-panel {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

body.ss-feed-body .feed-side-ad-slot {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px;
  border-color: rgba(0, 255, 159, 0.22);
  background:
    linear-gradient(165deg, rgba(9, 13, 27, 0.92), rgba(5, 7, 14, 0.96)),
    radial-gradient(240px 220px at 16% 0%, rgba(255, 0, 255, 0.16), transparent 70%);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.36);
}

body.ss-feed-body .feed-ad-panel .ad-slot__fallback {
  height: calc(100% - 30px);
  min-height: 0;
  padding: 10px;
  align-content: start;
  overflow: hidden;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog-head {
  display: grid;
  gap: 2px;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog-grid {
  grid-template-columns: 1fr;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog-card img {
  aspect-ratio: 16 / 10;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

body.ss-feed-body .feed-ad-panel .ad-slot__catalog-meta {
  align-items: center;
  gap: 8px;
}

body.ss-feed-body .feed-topbar {
  --feed-topbar-height: 56px;
  position: sticky;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  width: 100%;
  min-height: var(--feed-topbar-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 0;
  padding: 6px 8px;
  border-radius: 16px 16px 0 0;
  box-sizing: border-box;
}

body.ss-feed-body .feed-filters,
body.ss-feed-body .feed-composer,
body.ss-feed-body .feed-algo {
  display: none !important;
}

body.ss-feed-body .feed-headline {
  display: none;
}

body.ss-feed-body .feed-switch,
body.ss-feed-body .feed-switch__scroller {
  width: 100%;
  min-width: 0;
}

body.ss-feed-body .feed-switch__scroller {
  max-height: 44px;
}

body.ss-feed-body .feed-switch__track {
  gap: 6px;
}

body.ss-feed-body .feed-switch__btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.8rem;
}

body.ss-feed-body .feed-stage {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  display: grid;
  gap: 0;
  align-content: start;
}

body.ss-feed-body .feed-card,
body.ss-feed-body .feed-loading,
body.ss-feed-body .feed-error,
body.ss-feed-body .feed-empty {
  min-height: var(--feed-card-height);
  height: var(--feed-card-height);
}

body.ss-feed-body .feed-stage.feed-stage--empty {
  height: auto;
  min-height: 0;
  overflow: visible;
  scroll-snap-type: none;
}

body.ss-feed-body .feed-stage.feed-stage--empty .feed-empty {
  --feed-empty-height: clamp(320px, calc(100dvh - 72px - var(--feed-topbar-height) - 24px), 560px);
  min-height: var(--feed-empty-height);
  height: var(--feed-empty-height);
  border-radius: 0 0 16px 16px;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

body.ss-feed-body .feed-card {
  border-radius: 0 0 16px 16px;
}

body.ss-feed-body .feed-load-sentinel {
  min-height: 120px;
  scroll-snap-align: none;
}

body.ss-feed-body .feed-load-sentinel.is-hidden {
  min-height: 1px;
}

@media (max-width: 980px) {
  body.ss-feed-body .su-content {
    padding: 0;
  }

  body.ss-feed-body .feed-layout {
    --feed-surface-width: min(620px, 100%);
    --feed-rail-width: 0px;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0;
  }

  body.ss-feed-body .feed-ad-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  body.ss-feed-body .feed-layout {
    --feed-surface-width: 100vw;
  }

  body.ss-feed-body .feed-shell {
    --feed-topbar-height: 84px;
  }

  body.ss-feed-body .feed-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
    border-radius: 0;
  }

  body.ss-feed-body .feed-headline__sub {
    display: none;
  }

  body.ss-feed-body .feed-switch {
    display: flex;
  }

  body.ss-feed-body .feed-switch__btn {
    min-width: 64px;
    min-height: 34px;
    padding: 0 10px;
  }

  body.ss-feed-body .feed-card {
    border-radius: 0;
  }
}

.feed-creator-badge {
  display: none;
}

/* Mobile feed polish: media starts at the top line; controls float above it. */
@media (max-width: 768px) {
  body.ss-shell-body.ss-feed-body .su-content {
    padding-top: 0 !important;
  }

  body.ss-feed-body .feed-shell {
    --feed-topbar-height: 0px;
    --feed-card-height: max(540px, calc(100dvh - 126px));
    position: relative;
    scroll-padding-top: 0;
    overscroll-behavior-y: none;
  }

  body.ss-feed-body,
  body.ss-feed-body main,
  body.ss-feed-body .su-shell,
  body.ss-feed-body .su-main,
  body.ss-feed-body .su-content,
  body.ss-feed-body .feed-stage {
    overscroll-behavior-y: none;
  }

  body.ss-feed-body .feed-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8;
    width: 100%;
    min-height: 0;
    height: 58px;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    align-content: center;
    gap: 0;
    padding: 8px 10px 6px;
    margin-bottom: -58px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
  }

  body.ss-feed-body .feed-stage {
    height: var(--feed-card-height);
    min-height: var(--feed-card-height);
  }

  body.ss-feed-body .feed-refresh-indicator {
    top: calc(62px + env(safe-area-inset-top));
  }

  body.ss-feed-body .feed-headline {
    display: none !important;
  }

  body.ss-feed-body .feed-switch {
    display: block !important;
    justify-self: center;
    width: min(520px, 92vw);
    pointer-events: auto;
  }

  body.ss-feed-body .feed-switch__scroller {
    width: 100%;
    max-height: none;
    pointer-events: auto;
  }

  body.ss-feed-body .feed-switch__btn {
    min-width: max-content;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(2, 6, 12, 0.14) !important;
    color: rgba(248, 251, 255, 0.92);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      inset 0 0 18px rgba(0, 255, 159, 0.045),
      0 0 18px rgba(255, 0, 255, 0.22),
      0 0 20px rgba(0, 255, 159, 0.1);
    backdrop-filter: blur(8px) saturate(1.15);
    -webkit-backdrop-filter: blur(8px) saturate(1.15);
  }

  body.ss-feed-body .feed-switch__btn.is-active,
  body.ss-feed-body .feed-switch__btn[aria-selected="true"] {
    background: rgba(2, 6, 12, 0.2) !important;
    color: #ffffff;
    border-color: rgba(255, 0, 255, 0.76);
    text-shadow:
      0 0 12px rgba(255, 0, 255, 0.74),
      0 0 14px rgba(0, 255, 159, 0.34);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      inset 0 0 20px rgba(255, 0, 255, 0.14),
      0 0 22px rgba(255, 0, 255, 0.58),
      0 0 28px rgba(0, 255, 159, 0.3);
  }

  body.ss-feed-body .feed-mute {
    top: 8px;
    bottom: auto;
    left: 10px;
    z-index: 12;
    width: 44px;
    min-height: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-color: rgba(0, 255, 159, 0.52);
    background:
      radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.52), transparent 34%),
      linear-gradient(135deg, rgba(255, 0, 255, 0.9), rgba(0, 255, 159, 0.72));
    color: #02060a;
    font-size: 0.66rem;
    line-height: 1;
    font-weight: 950;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.62);
    box-shadow:
      0 0 22px rgba(0, 255, 159, 0.34),
      0 0 28px rgba(255, 0, 255, 0.28),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.ss-feed-body .feed-creator-badge {
    position: absolute;
    top: auto;
    bottom: 92px;
    left: 10px;
    z-index: 6;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: min(260px, calc(100% - 78px));
    min-height: 42px;
    padding: 4px 9px 4px 4px;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 159, 0.36);
    background:
      radial-gradient(circle at 14% 0%, rgba(255, 0, 255, 0.2), transparent 52%),
      linear-gradient(135deg, rgba(3, 8, 16, 0.84), rgba(5, 12, 18, 0.68));
    color: #f6fffb;
    text-decoration: none;
    box-shadow:
      0 0 22px rgba(0, 255, 159, 0.18),
      0 0 24px rgba(255, 0, 255, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.ss-feed-body .feed-media:has(.feed-mute) .feed-creator-badge {
    left: 10px;
    max-width: min(252px, calc(100% - 128px));
  }

  body.ss-feed-body .feed-creator-badge__avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 0, 255, 0.72);
    object-fit: cover;
    box-shadow:
      0 0 14px rgba(255, 0, 255, 0.35),
      0 0 16px rgba(0, 255, 159, 0.2);
  }

  body.ss-feed-body .feed-creator-badge__identity {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  body.ss-feed-body .feed-creator-badge__identity strong,
  body.ss-feed-body .feed-creator-badge__identity span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.ss-feed-body .feed-creator-badge__identity strong {
    font-size: 0.74rem;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 0 14px rgba(255, 0, 255, 0.36);
  }

  body.ss-feed-body .feed-creator-badge__identity span {
    font-size: 0.62rem;
    line-height: 1;
    color: rgba(0, 255, 159, 0.9);
    font-weight: 800;
  }

  body.ss-feed-body .feed-overlay {
    left: 0;
    right: 0;
    bottom: 0;
    inset: auto 0 0;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
  }

  body.ss-feed-body .feed-overlay > :not(.feed-stats-dropdown) {
    display: none !important;
  }

  body.ss-feed-body .feed-stats-dropdown {
    pointer-events: auto;
    bottom: 88px;
    left: 8px;
    right: 60px;
    width: auto;
    max-width: none;
  }

  body.ss-feed-body .feed-actions {
    top: auto;
    right: 7px;
    bottom: 92px;
    transform: none;
    gap: 6px;
    z-index: 7;
  }

  body.ss-feed-body .feed-card--stats-open .feed-actions {
    transform: translateX(4px);
  }

  body.ss-feed-body .feed-action {
    width: 44px;
    min-height: 44px;
    border-radius: 15px;
    padding: 3px;
  }

  body.ss-feed-body .feed-action__glyph {
    width: 22px;
    height: 22px;
    font-size: 0.9rem;
  }

  body.ss-feed-body .feed-action__count {
    max-width: 39px;
    font-size: 0.54rem;
    padding: 1px 3px;
  }
}

@media (max-width: 380px) {
  body.ss-feed-body .feed-switch,
  body.ss-feed-body .feed-switch__scroller {
    width: min(280px, 88vw);
  }

  body.ss-feed-body .feed-media:has(.feed-mute) .feed-creator-badge {
    max-width: calc(100% - 128px);
  }

  body.ss-feed-body .feed-action {
    width: 44px;
    min-height: 44px;
  }

  body.ss-feed-body .feed-actions {
    gap: 6px;
  }
}

/* TikTok-style mobile reel: content owns the viewport, shell chrome floats outside the scroll lane. */
@media (max-width: 768px) {
  body.ss-shell-body.ss-feed-body .su-content-grid,
  body.ss-shell-body.ss-feed-body .su-content-main,
  body.ss-feed-body .feed-layout,
  body.ss-feed-body .feed-shell {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
  }

  body.ss-feed-body .feed-layout {
    --feed-surface-width: 100vw;
    display: block;
    overflow: hidden;
  }

  body.ss-feed-body .feed-shell {
    --feed-topbar-height: 0px;
    --feed-card-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
    overscroll-behavior-y: contain;
    background: #000;
  }

  body.ss-feed-body .feed-stage {
    width: 100vw;
    height: auto;
    min-height: 100dvh;
    display: grid;
    overflow: visible;
  }

  body.ss-feed-body .feed-card,
  body.ss-feed-body .feed-loading,
  body.ss-feed-body .feed-error,
  body.ss-feed-body .feed-empty {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.ss-feed-body .feed-stage.feed-stage--empty,
  body.ss-feed-body .feed-stage.feed-stage--empty .feed-empty {
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
  }

  body.ss-feed-body .feed-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 62px;
    margin-bottom: -62px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  body.ss-feed-body .feed-switch,
  body.ss-feed-body .feed-switch__scroller {
    width: min(520px, 92vw);
  }

  body.ss-feed-body .feed-switch__btn {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.34);
    color: rgba(255, 255, 255, 0.92);
  }

  body.ss-feed-body .feed-switch__btn.is-active,
  body.ss-feed-body .feed-switch__btn[aria-selected="true"] {
    background: rgba(0, 0, 0, 0.14) !important;
  }

  body.ss-feed-body .feed-mute {
    top: calc(10px + env(safe-area-inset-top));
  }

  body.ss-feed-body .feed-creator-badge {
    bottom: calc(94px + env(safe-area-inset-bottom));
    max-width: min(260px, calc(100% - 78px));
  }

  body.ss-feed-body .feed-actions {
    right: 8px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    gap: 7px;
  }

  body.ss-feed-body .feed-action {
    width: 46px;
    min-height: 46px;
    height: 46px;
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 44%),
      linear-gradient(160deg, rgba(4, 7, 13, 0.82), rgba(1, 3, 7, 0.66));
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
  }

  body.ss-feed-body .feed-action--secondary {
    width: 44px;
    min-height: 44px;
    height: 44px;
    justify-self: center;
    opacity: 0.78;
  }

  body.ss-feed-body .feed-action--share {
    border-color: rgba(0, 255, 159, 0.58);
    box-shadow:
      0 0 16px rgba(0, 255, 159, 0.22),
      0 0 18px rgba(255, 0, 255, 0.12);
  }

  body.ss-feed-body .feed-action__label {
    display: none !important;
  }

  body.ss-feed-body .feed-action--secondary .feed-action__glyph {
    width: 18px;
    height: 18px;
    font-size: 0.74rem;
  }
}

.feed-switch__btn,
.feed-user__name {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.feed-action,
.feed-mute,
body.ss-feed-body .feed-action--secondary {
  min-width: 44px;
  min-height: 44px;
}

/* Robust viewport lock for feed pages (independent from shell class names). */
body.ss-feed-body,
body.ss-feed-body main {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

body.ss-feed-body .feed-layout {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.ss-feed-body .feed-shell {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

body.ss-feed-body .feed-stage {
  flex: 1 1 auto;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
