/* =========================================================
   4HE / SHORTSTORY CARD
   Feed cards, media, video in feed, card menu, fullstory body
   ========================================================= */

/* =========================
   CARD BASE
   ========================= */

.feed-card {
  position: relative;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
  overflow: visible;
}

.feed-card__header {
  margin: 0 0 12px;
}

.feed-card__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
}

.feed-card__badges {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feed-card__badge {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.feed-card__badge:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.feed-card__badge-icon-img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.feed-card__badge-text {
  line-height: 1;
}

.feed-card__meta-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-card__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.feed-card__title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feed-card__title a {
  color: inherit;
  text-decoration: none;
}

.feed-card__title a:hover {
  color: inherit;
  text-decoration: none;
}

.feed-card__excerpt {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card--video .feed-card__excerpt {
  -webkit-line-clamp: 2;
}

/* =========================
   IMAGE MEDIA / BLUR SIDE BACKGROUND
   ========================= */

.feed-card__media {
  position: relative;
  min-height: 260px;
  max-height: 620px;
  margin: 0;
  background: var(--surface-2);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.feed-card__media-bg {
  position: absolute;
  inset: -8px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: blur(26px) saturate(1.02) brightness(0.96);
  opacity: 0.82;
  pointer-events: none;
}

.feed-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.08)
    );
  pointer-events: none;
}

.feed-card__media-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-card__image {
  width: auto;
  max-width: 100%;
  max-height: clamp(260px, 60vh, 620px);
  margin: 0 auto;
  display: block;
  object-fit: contain;
  background: transparent;
  box-shadow: none !important;
}

.theme-dark .feed-card__media {
  background: var(--surface-2);
}

.theme-dark .feed-card__media-bg {
  filter: blur(26px) saturate(1.04) brightness(0.72);
  opacity: 0.88;
}

.theme-dark .feed-card__media::after {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.16)
    );
}

/* =========================
   VIDEO / SAME VISUAL SYSTEM AS IMAGE
   ========================= */

.video-card {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
}

.video-player {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 260px;
  max-height: 620px;
  background: var(--surface-2);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none !important;
}

.video-player__bg {
  position: absolute;
  inset: -8px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.08);
  filter: blur(26px) saturate(1.02) brightness(0.78);
  opacity: 0.88;
  pointer-events: none;
}

.video-player::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.03),
      rgba(0, 0, 0, 0.10)
    );
  pointer-events: none;
}

.video-player__video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: clamp(260px, 60vh, 620px);
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
  cursor: pointer;
}

.video-player.is-fullscreen {
  border-radius: 0;
}

.video-player__fs-layer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: none;
  background: #0f1115;
  overflow: hidden;
  isolation: isolate;
}

.video-player__fs-layer.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player__fs-layer .video-player {
  width: 100vw;
  height: 100dvh;
  min-height: 100dvh;
  max-height: none;
  border-radius: 0;
  background: #0f1115;
}

.video-player__fs-layer .video-player__bg {
  inset: 0;
  transform: scale(1.1);
  filter: blur(34px) brightness(0.56);
  opacity: 0.95;
}

.video-player__fs-layer .video-player__video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.video-player__center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.22s ease;
  pointer-events: auto;
  box-shadow: none;
}

.video-player__center-btn:hover {
  background: rgba(15, 23, 42, 0.52);
}

.video-player__center-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
}

.video-player__center-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-player__center-btn.pulse-play {
  animation: videoPulsePlay 0.3s ease;
}

.video-player__center-btn.pulse-pause {
  animation: videoPulsePause 0.3s ease;
}

@keyframes videoPulsePlay {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.12);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes videoPulsePause {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.video-player__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background:
    linear-gradient(
      to top,
      rgba(12, 18, 28, 0.72),
      rgba(12, 18, 28, 0.26),
      transparent
    );
}

.video-player__main-controls {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    filter 0.28s ease;
  will-change: opacity, transform, filter;
}

.video-player__controls.hidden .video-player__main-controls {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(2px);
  pointer-events: none;
}

.video-player__btn {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
  transition:
    background 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

.video-player__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.video-player__btn:active {
  transform: scale(0.96);
}

.video-player__progress {
  min-width: 0;
  height: 4px;
  flex: 1 1 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  overflow: hidden;
  pointer-events: auto;
}

.video-player__progress-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-main);
  border-radius: 999px;
}

.video-player__time {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.video-player__volume {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player__volume .video-player__btn {
  position: relative;
  z-index: 3;
}

.video-player__volume-slider {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 2;
  width: 22px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.video-player__volume-track {
  position: relative;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.video-player__volume-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 50%;
  background: var(--accent-main);
  border-radius: 999px;
}

.video-player__volume:hover .video-player__volume-slider,
.video-player__volume-slider:hover,
.video-player__volume.open .video-player__volume-slider {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.theme-dark .video-player {
  background: var(--surface-2);
}

.theme-dark .video-player__bg {
  filter: blur(26px) saturate(1.03) brightness(0.60);
  opacity: 0.92;
}

.theme-dark .video-player::after {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0.18)
    );
}

/* =========================
   FOOTER / ACTIONS
   ========================= */

.feed-card__poll {
  margin: 0 0 14px;
}

.feed-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.feed-card__actions-left,
.feed-card__actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-card__actions-right {
  position: relative;
}

.feed-card__rating {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 11px;
  box-shadow: none;
}

.feed-card__rate-btn,
.feed-card__rate-score {
  min-width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  line-height: 1;
}

.feed-card__rate-btn {
  background: transparent;
  color: var(--text-soft);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.feed-card__rate-btn:active {
  transform: scale(0.94);
}

.feed-card__rate-btn--up:hover {
  color: var(--success);
  background: var(--success-soft);
}

.feed-card__rate-btn--down:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.feed-card__rate-score {
  min-width: 32px;
  padding: 0 5px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.feed-card__rate-score.is-positive {
  color: var(--success);
}

.feed-card__rate-score.is-negative {
  color: var(--danger);
}

.feed-card__action {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.feed-card__action:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.feed-card__action:active {
  transform: scale(0.98);
}

.feed-card__action--icon,
.feed-card__action--share {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.feed-card__action--favorite:hover {
  color: #6cae12;
  background: var(--accent-hot-soft);
}

.feed-card__action--favorite.is-active {
  color: #74ab1f;
  background: rgba(116, 171, 31, 0.10);
}

.feed-card__action--share:hover {
  color: var(--accent-main);
}

/* =========================
   CARD MENU
   ========================= */

.feed-card__menu-wrap {
  position: relative;
}

.feed-card__menu-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.feed-card__menu-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.feed-card__menu-btn:active {
  transform: scale(0.96);
}

.feed-card__menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.theme-dark .feed-card__menu-dropdown {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.feed-card__menu-wrap.is-open .feed-card__menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.feed-card__menu-sheet-head {
  display: none;
}

.feed-card__menu-sheet-title {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.feed-card__menu-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.feed-card__menu-sheet-close:hover {
  background: var(--surface-2);
  color: var(--text);
}

.feed-card__menu-meta {
  margin: 0 0 10px;
}

.feed-card__menu-author {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.feed-card__menu-author:hover {
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.feed-card__menu-author-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.feed-card__menu-author-meta {
  min-width: 0;
}

.feed-card__menu-author-name {
  color: var(--text);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-card__menu-author-role {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.2;
}

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

.feed-card__menu-list a {
  text-decoration: none;
}

.feed-card__menu-item {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}

.feed-card__menu-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.feed-card__menu-item--danger {
  color: var(--danger);
}

.feed-card__menu-item--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.feed-card__menu-footnote {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-fade);
  font-size: 12px;
  line-height: 1.4;
}

/* =========================
   FULL STORY
   ========================= */

.feed-card--full {
  margin-bottom: 16px;
}

.feed-card__title--full {
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.feed-card__media + .full_text,
.video-card + .full_text,
.nsfw + .full_text,
.pk-gallery + .full_text {
  margin-top: 16px;
}

.full_text {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.72;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.full_text > *:first-child {
  margin-top: 0 !important;
}

.full_text > *:last-child {
  margin-bottom: 0 !important;
}

.full_text p {
  margin: 0 0 1.05em;
}

.full_text h2,
.full_text h3,
.full_text h4,
.full_text h5,
.full_text h6 {
  margin: 1.4em 0 0.55em;
  color: var(--text);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.full_text h2 {
  font-size: 26px;
}

.full_text h3 {
  font-size: 22px;
}

.full_text h4 {
  font-size: 19px;
}

.full_text ul,
.full_text ol {
  margin: 0 0 1.05em 1.25em;
  padding: 0;
}

.full_text li {
  margin: 0 0 0.45em;
}

.full_text a {
  color: var(--accent-main);
  text-decoration: none;
}

.full_text a:hover {
  color: var(--accent-main-hover);
  text-decoration: underline;
}

.full_text strong,
.full_text b {
  font-weight: 700;
  color: var(--text);
}

.full_text img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: none !important;
}

.full_text blockquote {
  margin: 1.2em 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent-main);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
  color: var(--text);
}

.full_text table {
  width: 100%;
  margin: 1.2em 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.full_text table th,
.full_text table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.full_text table th {
  background: var(--surface-2);
  font-weight: 600;
}

.feed-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.feed-card__tags a,
.feed-card__tags .page_tags-more {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.feed-card__tags a:hover {
  color: var(--text);
  text-decoration: none;
}

.feed-card__tags .page_tags-more {
  border: 0;
  cursor: pointer;
}

/* ===============================
   NSFW CONTEXT / COMPATIBILITY
   Main NSFW effect lives in components.css
   =============================== */

.feed-card .nsfw {
  border-radius: 16px;
}

.feed-card .nsfw .video-card {
  margin-bottom: 0;
}

.feed-card .nsfw .feed-card__media,
.feed-card .nsfw .video-player {
  border-radius: inherit;
}

.nsfw__badge {
  min-width: 46px;
  height: 30px;
  margin-bottom: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  text-shadow: none;
}

.nsfw__subtitle {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.nsfw__btn--yes {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.92);
  color: #111318;
}

.nsfw__btn--yes:hover {
  background: #fff;
  border-color: #fff;
}

.nsfw__btn--no {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.nsfw__overlay.is-confirm .nsfw__inner {
  animation: nsfwPop 0.22s ease both;
}

@keyframes nsfwPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ° ÑÑ‚Ð°Ñ€Ð¾Ð³Ð¾ JS-ÐºÐ»Ð°ÑÑÐ°, ÐµÑÐ»Ð¸ Ð² libs.js Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÑ‚ÑÑ nsfw--open */
.nsfw.nsfw--open > :not(.nsfw__overlay) {
  filter: none;
  transform: none;
}

.nsfw.nsfw--open .nsfw__overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (hover: none), (pointer: coarse) {
  .video-player__volume-slider {
    display: none;
  }

  .video-player__controls {
    gap: 10px;
    padding: 11px 12px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
  }

  .video-player__btn {
    width: 38px;
    height: 38px;
  }

  .video-player__center-btn {
    width: 64px;
    height: 64px;
  }
}

@media screen and (max-width: 768px) {
  .feed-card {
    margin: 0 0 0;
    padding: 14px;
    border-radius: 16px;
  }

  .feed-card__title {
    font-size: 18px;
    line-height: 1.3;
  }

  .feed-card__excerpt {
    font-size: 14px;
    line-height: 1.56;
  }

  .feed-card__media {
    min-height: 220px;
    border-radius: 14px;
  }

  .feed-card__image {
    max-height: clamp(220px, 52vh, 520px);
  }

  .video-player {
    min-height: 220px;
    border-radius: 14px;
  }

  .video-player__video {
    max-height: clamp(220px, 52vh, 520px);
  }

  .feed-card__footer {
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .feed-card__actions-left,
  .feed-card__actions-right {
    width: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .feed-card__actions-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .feed-card__actions-right {
    flex: 0 0 auto;
    justify-content: flex-end;
  }

  .feed-card__menu-dropdown {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 1010;
    width: 100%;
    max-width: none;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
  }

  .feed-card__menu-wrap.is-open .feed-card__menu-dropdown {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .feed-card__menu-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  .feed-card__title--full {
    font-size: 25px;
    line-height: 1.2;
  }

  .full_text {
    font-size: 16px;
    line-height: 1.68;
  }

  .full_text h2 {
    font-size: 22px;
  }

  .full_text h3 {
    font-size: 20px;
  }

  .full_text h4 {
    font-size: 18px;
  }
}

@media screen and (max-width: 640px) {
  .feed-card {
    padding: 13px;
    border-radius: 0;
  }

  .feed-card__title {
    font-size: 17px;
  }

  .feed-card__media {
    min-height: 200px;
    border-radius: 13px;
  }

  .feed-card__media-bg {
    filter: blur(22px) saturate(1.02) brightness(0.95);
  }

  .feed-card__image {
    max-height: clamp(200px, 46vh, 420px);
  }

  .video-player {
    min-height: 200px;
    border-radius: 13px;
  }

  .video-player__bg {
    filter: blur(22px) saturate(1.02) brightness(0.72);
  }

  .video-player__video {
    max-height: clamp(200px, 46vh, 420px);
  }

  .feed-card .nsfw {
    border-radius: 13px;
  }

  .feed-card__action {
    min-height: 34px;
    padding: 0 9px;
    gap: 6px;
    font-size: 12px;
  }

  .feed-card__action--icon,
  .feed-card__action--share {
    width: 34px;
    min-width: 34px;
    padding: 0;
  }

  .feed-card__action--share span {
    display: none;
  }

  .feed-card__title--full {
    font-size: 22px;
    line-height: 1.22;
  }

  .full_text {
    font-size: 15px;
    line-height: 1.66;
  }

  .full_text h2 {
    font-size: 20px;
  }

  .full_text h3 {
    font-size: 18px;
  }

  .full_text h4 {
    font-size: 17px;
  }

  .full_text blockquote {
    padding: 10px 12px;
    border-radius: 0 10px 10px 0;
  }

  .nsfw__badge {
    height: 28px;
    margin-bottom: 8px;
    font-size: 13px;
  }

  .nsfw__subtitle {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-player__center-btn,
  .nsfw__overlay.is-confirm .nsfw__inner {
    animation: none !important;
  }

  .feed-card__badge,
  .feed-card__rate-btn,
  .feed-card__action,
  .feed-card__menu-btn,
  .feed-card__menu-dropdown,
  .video-player__center-btn,
  .video-player__main-controls,
  .video-player__btn,
  .video-player__volume-slider {
    transition: none !important;
  }
}