/* =============================================
   TECHMEET — Page: Home Feed
   ============================================= */

/* ─── TOPBAR HOME ─────────────────────────── */
.home-topbar {
  height: var(--topbar-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
  z-index: 50;
  overflow: hidden;
}
.home-search-pill {
  flex: 1;
  min-width: 0; /* empêche le débordement */
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  padding: 9px 14px;
  cursor: pointer;
  overflow: hidden;
}
.home-search-pill span {
  font-size: 14px; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ─── STORIES BAR ─────────────────────────── */
.stories-section {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  flex-shrink: 0;
}
.stories-scroll {
  display: flex; gap: 14px;
  padding: 0 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stories-scroll::-webkit-scrollbar { display: none; }
.story-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; flex-shrink: 0; cursor: pointer;
  width: 104px;
}
/* APRÈS — le dégradé plein n'a plus de sens : chaque segment a sa propre couleur */
.story-ring-wrap {
  padding: 2.5px;
  border-radius: 12px;
  background: transparent;
  position: relative; /* nécessaire pour l'overlay SVG absolu */
}
/* .seen n'est plus utilisé pour la couleur (gérée par segment) — gardé pour compat éventuelle */
/* .story-ring-wrap.seen { background: transparent; } */
.story-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.story-ring-inner {
  position: absolute;
  inset: 12%;                       /* ratio, pas px fixe → suit chaque breakpoint automatiquement */
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark);
}
/* La grande carte carrée — contient la vignette en plein cadre */
.story-av {
  width: 100px; height: 170px;
  border-radius: 16px;
  background: var(--bg-card2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.story-av-add {
  display: flex; align-items: center; justify-content: center;
}
/* Vignette (image / thumbnail vidéo / fond texte) — remplit toute la carte */
.story-thumb-full {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
/* Mini avatar + anneau segmenté — posé en haut à gauche de la carte */
.story-mini-wrap {
  position: absolute;
  top: 8px; left: 8px;
  width: 38px; height: 38px;
  z-index: 2;
}
.story-mini-ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.story-mini-avatar {
  position: absolute; inset: 12%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-dark);
}
/* Badge "+" — repositionné en bas à droite de la grande carte */
.story-add-badge {
  position: absolute;
  right: 8px; bottom: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #007aff;
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-dark);
  font-size: 18px; font-weight: 700;
  z-index: 2;
}
/* Petit badge "+" attaché au coin du MINI-avatar uniquement */
.story-mini-add-badge {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #007aff;
  color: white;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-dark);
  font-size: 11px; font-weight: 700;
  line-height: 1;
  z-index: 3;
}
/* Zone tactile invisible, bien plus large que le badge visuel */
.story-mini-add-badge::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
}
.story-name {
  font-size: 11px; font-weight: 500;
  color: var(--text-2);
  width: 104px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.story-name.me { color: var(--blue-glow); }

/* ─── CREATE POST BAR ─────────────────────── */
.create-post-bar {
  background: var(--bg-dark);
  border-bottom: 8px solid var(--bg-root);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.create-post-top {
  display: flex; align-items: center; gap: 10px;
}
.create-post-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  font-size: 15px; color: var(--text-3);
  cursor: pointer;
  transition: border-color var(--ease-fast), background var(--ease-fast);
  text-align: left;
  font-family: var(--font-body);
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden;
}
.create-post-input span {
  display: inline-flex; align-items: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.create-post-gallery {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: rgba(59,130,246,0.1);
  border-radius: 50%; color: var(--blue);
  transition: background var(--ease-fast);
  flex-shrink: 0;
}
.create-post-gallery:hover { background: rgba(59,130,246,0.2); }
.create-post-input:active { border-color: var(--border-focus); }
.create-post-actions { display: none; }
.cp-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 4px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: var(--ease-fast);
  min-width: 0;
}
.cp-action:active { background: var(--bg-hover); }
.cp-action .cp-icon { font-size: 18px; flex-shrink: 0; }

/* ─── FEED DIVIDER ────────────────────────── */
.feed-sep { height: 8px; background: var(--bg-root); flex-shrink: 0; }

/* ─── POST CARD ───────────────────────────── */
.post-card {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 8px;
  animation: slideUp 0.35s ease;
}
.post-header {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px 8px;
  overflow: hidden;
}
.post-user { flex: 1; min-width: 0; }
.post-name {
  font-size: 15px; font-weight: 700; color: var(--text-1);
  display: flex; align-items: center; gap: 5px;
  overflow: hidden;
}
.post-name span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-meta-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 2px; flex-wrap: wrap;
}
.post-cat   { font-size: 12px; color: var(--cyan); font-weight: 600; white-space: nowrap; }
.post-dot   { font-size: 10px; color: var(--text-3); flex-shrink: 0; }
.post-time  { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.post-privacy { color: var(--text-3); flex-shrink: 0; }
.post-more {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; flex-shrink: 0;
  transition: var(--ease-fast);
}
.post-more:active { background: var(--bg-card2); }

.post-body { padding: 4px 14px 10px; }
.post-text {
  font-size: 15px; line-height: 1.6;
  color: var(--text-1);
  white-space: pre-line;
  word-break: break-word; /* évite le débordement horizontal */
}
.post-text.large { font-size: 20px; font-weight: 500; line-height: 1.4; }
.post-see-more { color: var(--blue-glow); font-weight: 500; cursor: pointer; }

/* Post hashtags */
.post-tags { margin-top: 6px; }
.post-tag  { color: var(--blue-glow); font-weight: 500; }

/* Post media */
.post-media {
  overflow: hidden;
  border-radius: 12px;
  margin: 8px 0;
  max-height: 85vh;              /* limite raisonnable, plus haute que 80vw pour laisser respirer les images en portrait */
  background: #000;              /* évite un flash blanc si l'image est plus petite que le cadre (letterboxing) */
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-media img,
.post-media video {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;           /* ← plus de recadrage : toute l'image est visible */
  object-position: center;
  display: block;
  border-radius: 12px;
}
.post-video-thumb { border-radius: 12px; overflow: hidden; margin: 8px 0; max-height: 80vw; }
.post-video-thumb video { width: 100%; max-height: 80vw; object-fit: cover; display: block; }

/* ─── Custom video player ───────────────────── */
.post-video-wrap {
  position: relative; border-radius: 12px; overflow: hidden;
  margin: 8px 0; background: #000; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.post-video {
  width: 100%; max-height: 500px; object-fit: contain; display: block;
}
/* Centre : big play overlay */
.vc-center {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; transition: opacity .2s;
}
.vc-big-play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
}
/* Controls bar */
.vc-controls {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  padding: 28px 10px 8px;
}
.vc-progress {
  height: 3px; background: rgba(255,255,255,.3);
  border-radius: 2px; margin-bottom: 8px; cursor: pointer;
}
.vc-progress-fill {
  height: 100%; background: white; border-radius: 2px;
  width: 0%; transition: width .1s linear; pointer-events: none;
}
.vc-row { display: flex; align-items: center; gap: 6px; }
.vc-btn {
  background: none; border: none; color: white; cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; flex-shrink: 0;
}
.vc-time {
  font-size: 11px; color: rgba(255,255,255,.9);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.post-media-grid { display: grid; gap: 2px; border-radius: 12px; overflow: hidden; margin: 8px 0; background: #000; }
.post-media-grid img,
.post-media-grid video { width: 100%; height: 200px; object-fit: contain; display: block; background: #000; }
.post-media-carousel { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch;
                        scrollbar-width: none; padding: 8px 0; }
.post-media-carousel::-webkit-scrollbar { display: none; }

/* Post service card */
.post-service-card {
  margin: 0 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; align-items: center; gap: 12px;
  overflow: hidden;
}
.post-service-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,0.15);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.post-service-name { font-size: 14px; font-weight: 700; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-service-loc  { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-service-btn  { margin-left: auto; flex-shrink: 0; }

/* Reaction summary bar */
.post-stats {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 14px;
  overflow: hidden;
}
.post-stats-left { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.reaction-icons { display: flex; align-items: center; }
.reaction-icon {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  margin-left: -4px; border: 1.5px solid var(--bg-dark);
}
.reaction-icon:first-child { margin-left: 0; }
.reaction-icon.like  { background: var(--blue); }
.reaction-icon.love  { background: #ef4444; }
.reaction-icon.clap  { background: var(--orange); }
.post-stats-count { font-size: 13px; color: var(--text-2); }
.post-stats-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.post-stats-comments { font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.post-stats-comments:hover { text-decoration: underline; }

/* ─── Action row ──────────────────────────── */
.post-actions {
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  padding: 2px 4px;
}
.pa-btn, .post-action-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 2px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  cursor: pointer; border-radius: var(--r-sm);
  transition: var(--ease-fast);
  border: none; background: none;
  min-width: 0;
}
.pa-btn:active, .post-action-btn:active { background: var(--bg-hover); }
.pa-btn.liked, .post-action-btn.liked { color: var(--red); }
.pa-btn.liked svg, .post-action-btn.liked svg { fill: var(--red); }
.pa-btn.reacted, .post-action-btn.reacted { color: var(--blue-light); }
.pa-btn svg, .post-action-btn svg { flex-shrink: 0; }
.pa-btn span, .post-action-btn span {
  display: inline-block;
  flex-shrink: 0;
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}

/* Long-press reaction popup */
.reaction-popup {
  position: absolute;
  bottom: 100%;
  /* centré plutôt que collé à gauche */
  left: 50%; transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 12px;
  display: flex; gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.2s ease;
  z-index: 50;
  /* ne dépasse pas les bords */
  max-width: calc(100vw - 28px);
}
.reac-btn {
  font-size: 26px; cursor: pointer;
  transition: transform 0.15s ease;
  line-height: 1;
}
.reac-btn:hover { transform: scale(1.4) translateY(-4px); }

/* ─── SUGGESTED FRIENDS ───────────────────── */
.suggest-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 8px solid var(--bg-root);
}
.suggest-scroll {
  display: flex; gap: 10px;
  padding: 8px 14px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.suggest-scroll::-webkit-scrollbar { display: none; }
.suggest-card {
  width: 136px; flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.suggest-cover {
  height: 76px; background: var(--grad-brand); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.suggest-body { padding: 8px 10px; }
.suggest-name {
  font-size: 13px; font-weight: 700; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.suggest-mutual { font-size: 11px; color: var(--text-2); margin-bottom: 8px; }
.suggest-add { width: 100%; font-size: 12px; padding: 7px 0; }

/* ─── TRENDING ───────────────────────────── */
.trending-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  border-bottom: 8px solid var(--bg-root);
  padding-bottom: 12px;
}
.trending-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  transition: var(--ease-fast);
  overflow: hidden;
}
.trending-item:active { background: var(--bg-hover); }
.trending-rank {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--blue-glow); width: 24px; flex-shrink: 0;
}
.trending-tag  { font-size: 14px; font-weight: 700; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending-count { font-size: 12px; color: var(--text-2); }

/* ─── NEARBY BANNER ───────────────────────── */
.nearby-banner {
  margin: 0 14px 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(6,182,212,0.12));
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  overflow: hidden;
}
.nearby-icon { font-size: 26px; flex-shrink: 0; }
.nearby-text { font-size: 14px; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nearby-sub  { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── COMPOSER MODAL ─────────────────────── */
.composer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 1000; animation: fadeIn 0.2s ease;
  padding: 0;
}
.composer-modal {
  background: var(--bg-dark);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  width: 100%; max-width: 500px;
  margin-top: 16px;
  animation: slideUp 0.3s ease;
  overflow: hidden;
}
.composer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  gap: 8px;
}
.composer-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-hover); color: var(--text-2);
  border: none; font-size: 16px; cursor: pointer;
  flex-shrink: 0;
}
.composer-title { font-size: 16px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-publish {
  background: var(--blue); color: white;
  border: none; border-radius: var(--r-md);
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
}
.composer-publish:disabled { opacity: 0.5; cursor: not-allowed; }
.composer-body { padding: 16px; }
.composer-user { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.composer-user-info { flex: 1; min-width: 0; }
.composer-user-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-options-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 4px 8px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.composer-textarea {
  width: 100%; border: none; outline: none;
  background: transparent; font-size: 16px; line-height: 1.4;
  resize: none; font-family: var(--font-body);
  color: var(--text-1);
}
.composer-textarea::placeholder { color: var(--text-3); }
.composer-style-options {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.composer-style-chip {
  border: 1px solid var(--border);
  background: var(--bg-root); color: var(--text-2);
  padding: 8px 12px; border-radius: 999px; font-size: 13px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.composer-style-chip.active { background: var(--blue); border-color: var(--blue); color: white; }
.composer-style-chip:hover  { background: var(--bg-hover); }
.composer-media-preview {
  margin-top: 16px; min-height: 100px;
  border: 2px dashed var(--border); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 14px;
}
.composer-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-top: 1px solid var(--border);
  flex-wrap: wrap; /* évite le débordement */
}
.composer-media-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 8px 12px;
  font-size: 14px; color: var(--text-2); cursor: pointer;
  white-space: nowrap;
}
.composer-media-icon { font-size: 18px; flex-shrink: 0; }

/* ─── Responsive Feed ────────────────────── */

@media (max-width: 480px) {
  .home-topbar { padding: 0 8px; gap: 6px; }
  .home-search-pill { padding: 8px 12px; }
  .home-search-pill span { font-size: 13px; }

  .create-post-bar { padding: 10px 12px; }
  .create-post-input { font-size: 14px; padding: 10px 12px; }

  .post-header  { padding: 10px 12px 6px; gap: 8px; }
  .post-body    { padding: 4px 12px 10px; }
  .post-text    { font-size: 14px; }
  .post-name    { font-size: 14px; }
  .post-service-card { margin: 0 12px 10px; }

  .pa-btn { font-size: 12px; gap: 4px; padding: 8px 2px; }

  .nearby-banner { margin: 0 12px 10px; padding: 12px; }
  .nearby-icon   { font-size: 22px; }
  .nearby-text   { font-size: 13px; }

  .reaction-popup { gap: 8px; padding: 7px 10px; }
  .reac-btn { font-size: 22px; }
  .story-item { width: 106px; }
  .story-av   { width: 100px; height: 170px; }
  .story-mini-wrap { width: 36px; height: 36px; }
  .story-name { width: 106px; font-size: 11px; }
  .story-mini-add-badge { width: 22px; height: 22px; font-size: 20px; }
}

@media (max-width: 360px) {
  .home-topbar { padding: 0 6px; gap: 4px; }
  .home-search-pill { padding: 7px 10px; gap: 6px; }
  .home-search-pill span { font-size: 12px; }

  .post-header { padding: 9px 10px 5px; gap: 7px; }
  .post-body   { padding: 3px 10px 8px; }
  .post-text   { font-size: 13px; }
  .post-text.large { font-size: 17px; }
  .post-name   { font-size: 13px; }
  .post-cat    { font-size: 11px; }
  .post-time   { font-size: 11px; }

  /* Médias moins hauts sur petit écran */
 .post-media img,
  .post-media video     { max-height: 80vh; }
  .post-video           { max-height: 80vh; }
  .post-media-grid img,
  .post-media-grid video { height: 160px; }

  /* Player vidéo */
  .vc-big-play { width: 44px; height: 44px; }

  .pa-btn { font-size: 11px; gap: 3px; }

  .suggest-card  { width: 120px; }
  .suggest-name  { font-size: 12px; }
  .suggest-cover { height: 64px; }

  .trending-item { padding: 8px 12px; gap: 8px; }
  .trending-rank { font-size: 15px; width: 20px; }
  .trending-tag  { font-size: 13px; }

  .nearby-banner { padding: 10px 12px; gap: 8px; margin: 0 10px 10px; }
  .nearby-icon   { font-size: 20px; }
  .nearby-text   { font-size: 12px; }
  .nearby-sub    { font-size: 11px; }

 
  .story-item { width: 92px; }
  .story-av   { width: 100px; height: 138px; }
  .story-mini-wrap { width: 32px; height: 32px; }
  .story-name { width: 92px; font-size: 10px; }
  .story-mini-add-badge { width: 22px; height: 22px; font-size: 20px; }

  .reaction-popup { gap: 6px; padding: 6px 8px; }
  .reac-btn { font-size: 20px; }

  .post-service-card  { margin: 0 10px 8px; padding: 10px; gap: 10px; }
  .post-service-icon  { width: 38px; height: 38px; font-size: 18px; }
  .post-service-name  { font-size: 13px; }

  .create-post-bar   { padding: 8px 10px; gap: 8px; }
  .create-post-input { font-size: 13px; padding: 9px 11px; }
}

@media (max-width: 320px) {
  .post-text.large { font-size: 15px; }

  .post-media img,
  .post-media video     { max-height: 80vh; }
  .post-video           { max-height: 80vh; }
  .post-media-grid img,
  .post-media-grid video { height: 130px; }

  .vc-big-play { width: 38px; height: 38px; }

  
  .story-item { width: 82px; }
  .story-av   { width: 90px; height: 138px; }
  .story-mini-wrap { width: 28px; height: 28px; }
  .story-name { width: 82px; font-size: 9px; }
  .story-mini-add-badge { width: 22px; height: 22px; font-size: 20px; }
  
  .suggest-card { width: 108px; }
  .trending-rank { font-size: 13px; }

  .home-search-pill span { font-size: 11px; }
  .post-header { padding: 8px 8px 4px; }
  .post-body   { padding: 3px 8px 7px; }
}