.feed { padding-top: 6px; }

.feed-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 8px 16px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.feed-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #3a3a3a;
  cursor: pointer;
  position: relative;
}

.feed-switch-btn + .feed-switch-btn {
  border-left: 1px solid var(--line);
}

.feed-switch-btn.is-on {
  color: var(--accent);
}

.feed-switch-btn.is-on::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}

.feed-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.feed-tabs::-webkit-scrollbar { display: none; }

.feed-tab {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #2e2e2e;
  white-space: nowrap;
  cursor: pointer;
}

.feed-tab.is-on {
  background: var(--peach);
  color: var(--accent-2);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 12px 8px;
}

.feed-item {
  aspect-ratio: 1;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(170, 150, 130, .16) 0 26%, transparent 27%),
    #f3eee6;
  position: relative;
  overflow: hidden;
}

.feed-item img,
.feed-item video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-item img.is-blur {
  filter: blur(12px) brightness(.72);
  transform: scale(1.18);
}

.feed-lock {
  position: relative;
  z-index: 2;
}

.feed-play {
  position: relative;
  z-index: 2;
  color: #fff;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.45));
}

.post-media .feed-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
}

.feed-kind {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  color: #fff;
  display: grid;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
}

.feed-item:active { opacity: .85; }

.feed-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 10px;
  padding: 16px 7px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

.feed-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.feed-item .wm {
  right: 5px;
  bottom: 5px;
  font-size: 6px;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-item.is-free .wm { bottom: 26px; }

.post-slide .wm {
  right: 10px;
  bottom: 10px;
  font-size: 11px;
}

.post-media {
  width: auto;
  margin: 0 12px 4px;
  border: 0;
  padding: 0;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  touch-action: pan-y;
  user-select: none;
}

.post-slide {
  position: absolute;
  inset: 0;
}

.post-slide.is-free { cursor: zoom-in; }
.post-slide.is-lock { cursor: pointer; }

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.post-media img.is-blur {
  filter: blur(22px) brightness(.55);
  transform: scale(1.16);
}

.post-copy {
  padding: 0 16px 12px;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #1a1a1a;
}

.post-date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: auto;
}

.post-stack {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
  pointer-events: none;
}

.post-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 32px;
  height: 48px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

.post-arrow--l { left: 0; }
.post-arrow--r { right: 0; }

.post-previa {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.post-pager {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.post-pager i {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-style: normal;
}

.post-pay {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: min(210px, 70%);
  background: rgba(28, 28, 28, .78);
  color: #fff;
  border-radius: 16px;
  padding: 16px 18px 14px;
  text-align: center;
  border: 0;
  cursor: pointer;
}

.post-pay-lock {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -38px auto 8px;
  background: rgba(28, 28, 28, .85);
  border-radius: 50%;
  color: #fff;
}

.post-pay strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.post-pay hr {
  border: 0;
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 10px 0;
}

.post-pay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.post-unlock {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4a574, #e07b55);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(224, 123, 85, .35);
}

.post-price {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 800;
  color: #2c2c2c;
  cursor: pointer;
  padding: 8px 12px 8px 0;
}

.post-likes {
  padding: 0 16px 14px;
  font-size: 13px;
  color: #555;
}

.post-card {
  background: #fff;
  margin: 0;
  padding-bottom: 6px;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
  border: 1px solid rgba(0, 0, 0, .04);
  overflow: hidden;
}

.feed-posts {
  background: var(--cream);
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.js-view[hidden],
.feed-posts[hidden] {
  display: none !important;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 10px 16px;
}

.post-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
}

.post-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.post-who strong {
  font-size: 14.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.post-who span {
  font-size: 13px;
  color: var(--muted);
}

.post-more {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #333;
  flex-shrink: 0;
}

.post-foot {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px 2px 8px;
}

.post-act {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #2c2c2c;
}

.lb {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .88);
  display: grid;
  place-items: center;
  padding: 48px 16px 24px;
}

.lb[hidden] { display: none !important; }

.lb-stage {
  position: relative;
  max-width: 100%;
  max-height: min(86vh, 820px);
}

.lb-img,
.lb-vid {
  max-width: 100%;
  max-height: min(86vh, 820px);
  border-radius: 10px;
  display: none;
}

.lb.is-img .lb-img,
.lb.is-vid .lb-vid { display: block; }

.lb-stage .wm {
  right: 12px;
  bottom: 12px;
  font-size: 12px;
}

.lb-x {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
