/* =========================================================
   OPENFEED — CLEAN UI
========================================================= */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f6f7f9;
  color: #111827;
  line-height: 1.5;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .65;
}
.hidden {
  display: none !important;
}
/* =========================================================
   AUTH
========================================================= */
#authScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(37, 99, 235, .12),
      transparent 32%
    ),
    radial-gradient(
      circle at 85% 90%,
      rgba(99, 102, 241, .10),
      transparent 32%
    ),
    #f6f7f9;
}
.auth-box {
  width: 100%;
  max-width: 410px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px;
  box-shadow:
    0 20px 50px rgba(15, 23, 42, .08);
}
.logo {
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -1.2px;
}
.logo span,
.header-logo span {
  color: #2563eb;
}
.auth-subtitle {
  margin: 7px 0 26px;
  color: #6b7280;
  font-size: 14px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 750;
  color: #374151;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 11px;
  background: #fff;
  padding: 11px 13px;
  color: #111827;
  outline: none;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.primary-btn {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 12px 16px;
  background: #2563eb;
  color: #fff;
  font-weight: 750;
  transition:
    background .15s ease,
    transform .1s ease;
}
.primary-btn:hover {
  background: #1d4ed8;
}
.primary-btn:active {
  transform: translateY(1px);
}
.auth-switch {
  margin-top: 18px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
.link-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
}
/* =========================================================
   APP HEADER
========================================================= */
#appScreen {
  min-height: 100vh;
}
header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-logo {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -.7px;
}
.search {
  flex: 1;
  width: 100%;
  max-width: 560px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  background: #f1f3f5;
  color: #111827;
  outline: none;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}
.search::placeholder {
  color: #9ca3af;
}
.search:focus {
  background: #fff;
  border-color: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .08);
}
.user-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #4b5563;
  font-size: 19px;
  padding: 0;
  outline: none;
  transition:
    background .15s ease,
    color .15s ease;
}
.icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}
.icon-btn:focus,
.icon-btn:focus-visible,
.icon-btn:active {
  outline: none;
  box-shadow: none;
}
.header-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 3px 7px 3px 3px;
  border-radius: 999px;
  color: #111827;
  outline: none;
  transition: background .15s ease;
}
.header-profile-btn:hover {
  background: #f3f4f6;
}
.header-profile-btn:focus,
.header-profile-btn:focus-visible,
.header-profile-btn:active {
  outline: none;
  box-shadow: none;
}
.header-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.header-menu-wrap {
  position: relative;
}
.header-dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 200;
  width: 225px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, .14);
}
.header-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 9px;
  color: #374151;
  text-align: left;
  font-weight: 650;
}
.header-dropdown button:hover {
  background: #f3f4f6;
}
/* =========================================================
   AVATAR
========================================================= */
.avatar,
.post-avatar,
.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 800;
}
.avatar {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.avatar-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
}
/* =========================================================
   MAIN LAYOUT
========================================================= */
.layout {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 270px;
  gap: 24px;
  padding: 24px 16px 50px;
}
.card {
  margin-bottom: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .025);
}
/* =========================================================
   NAV
========================================================= */
nav a {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition:
    background .15s ease,
    color .15s ease;
}
nav a:hover {
  background: #f3f4f6;
  color: #111827;
}
nav a.active {
  background: #eaf1ff;
  color: #2563eb;
}
/* =========================================================
   COMPOSER
========================================================= */
textarea.composer {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 13px 14px;
  background: #fafafa;
  color: #111827;
  outline: none;
  line-height: 1.55;
  transition:
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}
textarea.composer::placeholder {
  color: #9ca3af;
}
textarea.composer:focus {
  background: #fff;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .07);
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.composer-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
}
.small-btn,
.secondary-btn {
  border: 0;
  border-radius: 9px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background .15s ease,
    color .15s ease;
}
.small-btn {
  background: #2563eb;
  color: #fff;
}
.small-btn:hover {
  background: #1d4ed8;
}
.secondary-btn {
  background: #f1f3f5;
  color: #374151;
}
.secondary-btn:hover {
  background: #e5e7eb;
}
.media-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.selected-media {
  max-width: 280px;
  min-width: 0;
  display: block;
  color: #2563eb;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}
.selected-media div:first-child {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-media div:nth-child(2) {
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}
.selected-media div:nth-child(3) {
  margin-top: 2px;
  color: #dc2626;
  font-size: 12px;
}
/* =========================================================
   MEDIA PREVIEW
========================================================= */
.media-preview {
  position: relative;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #111827;
}
.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #111827;
}
.media-preview video {
  height: auto;
  min-height: 180px;
}
.preview-remove {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: 17px;
  backdrop-filter: blur(5px);
}
/* =========================================================
   POST MEDIA
========================================================= */
.post-media {
  position: relative;
  width: 100%;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}
.post-media img,
.post-media video,
.post-video-poster {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  background: #111827;
}
.post-media video {
  height: auto;
}
.video-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #fff;
  font-size: 13px;
  background: rgba(17, 24, 39, .18);
  opacity: 0;
  transition: opacity .2s ease;
}
.post-media.loading .video-loading {
  opacity: 1;
}
/* =========================================================
   TABS
========================================================= */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  background: #f1f3f5;
  border-radius: 11px;
}
.tabs button {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  transition:
    background .15s ease,
    color .15s ease,
    box-shadow .15s ease;
}
.tabs button:hover {
  color: #374151;
}
.tabs button.active {
  background: #fff;
  color: #2563eb;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, .08);
}
/* =========================================================
   POSTS
========================================================= */
.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-avatar {
  width: 42px;
  height: 42px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
}
.author {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}
.muted {
  color: #9ca3af;
  font-size: 12px;
}
.post-text {
  margin: 15px 0;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
}
/* =========================================================
   POST ACTIONS
========================================================= */
.post-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #f0f1f3;
}
.post-actions button.post-like-btn,
.post-actions button.post-comment-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  transition:
    color .15s ease,
    transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.post-actions button.post-like-btn:hover,
.post-actions button.post-comment-btn:hover {
  color: #111827;
}
.post-actions button.post-like-btn:active,
.post-actions button.post-comment-btn:active {
  transform: scale(.97);
}
.post-actions button.post-like-btn.liked {
  color: #ef4444 !important;
}
.post-actions button.post-like-btn:focus,
.post-actions button.post-like-btn:focus-visible,
.post-actions button.post-like-btn:active,
.post-actions button.post-comment-btn:focus,
.post-actions button.post-comment-btn:focus-visible,
.post-actions button.post-comment-btn:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}
.post-actions button.post-like-btn span,
.post-actions button.post-comment-btn span {
  color: inherit;
}
/* =========================================================
   COMMENTS
========================================================= */
.comments-panel {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f3;
}
.comments-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}
.comment-item {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f7f8fa;
  border-radius: 12px;
}
/* =========================================================
   COMMENT AVATAR — FIXED + FULL IMAGE
========================================================= */
.comments-panel .comment-avatar,
.comments-panel .comment-avatar-wrap {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  flex: 0 0 40px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.comments-panel .comment-avatar img,
.comments-panel .comment-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  flex: 0 0 auto !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
}
/* =========================================================
   COMMENT CONTENT
========================================================= */
.comments-panel .comment-content {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comment-author {
  margin-bottom: 2px;
  color: #111827;
  font-size: 13px;
  font-weight: 750;
}
.comment-text {
  color: #374151;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.comment-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 9px 13px;
  background: #f9fafb;
  outline: none;
}
.comment-input:focus {
  background: #fff;
  border-color: #bfdbfe;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, .06);
}
.comment-submit-btn {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.comment-submit-btn:hover {
  background: #1d4ed8;
}
/* =========================================================
   RECOMMENDATION
========================================================= */
.why {
  margin-top: 14px;
  padding: 13px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
}
.why-title {
  margin-bottom: 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}
.signal {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: #4b5563;
  font-size: 13px;
}
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid #dbeafe;
}
.score {
  color: #2563eb;
  font-size: 22px;
  font-weight: 850;
}
/* =========================================================
   SETTINGS
========================================================= */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.setting-title {
  font-size: 14px;
  font-weight: 800;
}
.switch {
  position: relative;
  width: 46px;
  height: 25px;
  flex-shrink: 0;
}
.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}
.slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  transition: background .2s ease;
}
.slider:before {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}
.switch input:checked + .slider {
  background: #2563eb;
}
.switch input:checked + .slider:before {
  transform: translateX(21px);
}
/* =========================================================
   PROFILE
========================================================= */
.profile-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.profile-topbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.3px;
}
.profile-page-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  z-index: 30;
  width: 220px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, .14);
}
.profile-page-dropdown button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 11px 12px;
  border-radius: 9px;
  color: #374151;
  text-align: left;
  font-weight: 650;
}
.profile-page-dropdown button:hover {
  background: #f3f4f6;
}
.profile-header {
  padding: 12px 0 22px;
  text-align: center;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  font-size: 32px;
}
.profile-name {
  font-size: 23px;
  font-weight: 850;
  letter-spacing: -.4px;
}
.profile-username {
  margin-top: 2px;
  color: #6b7280;
  font-size: 14px;
}
.profile-bio {
  max-width: 500px;
  margin: 10px auto 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
}
.profile-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 17px;
}
.profile-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
}
.profile-stat span {
  color: #6b7280;
  font-size: 12px;
}
.profile-image-tools {
  margin-top: 10px;
}
/* =========================================================
   MODAL
========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-box {
  width: 100%;
  max-width: 470px;
  padding: 22px;
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, .20);
}
.modal-title {
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.3px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
/* =========================================================
   STATUS / PILLS
========================================================= */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pill {
  display: inline-block;
  margin: 3px;
  padding: 6px 10px;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 13px;
}
.status {
  margin-top: 12px;
  color: #6b7280;
  font-size: 13px;
}
/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 700px;
    padding-top: 16px;
  }
  .side {
    display: none;
  }
  header {
    padding: 0 16px;
  }
  .header-name {
    display: none;
  }
  .post-media img,
  .post-media video,
  .post-video-poster {
    max-height: 520px;
  }
}
/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 560px) {
  #authScreen {
    padding: 14px;
  }
  .auth-box {
    padding: 24px 20px;
    border-radius: 18px;
  }
  header {
    height: 58px;
    padding: 0 10px;
    gap: 5px;
  }
  .header-logo {
    font-size: 19px;
  }
  .search {
    display: none;
  }
  .user-menu {
    gap: 2px;
  }
  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .avatar {
    width: 34px;
    height: 34px;
  }
  .header-profile-btn {
    padding: 2px;
  }
  .header-dropdown,
  .profile-page-dropdown {
    width: 210px;
  }
  .layout {
    max-width: none;
    padding: 10px 0 30px;
  }
  .card {
    margin-bottom: 10px;
    padding: 15px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .composer-footer {
    align-items: flex-end;
  }
  .composer-tools {
    gap: 5px;
  }
  .selected-media {
    max-width: 180px;
  }
  .tabs {
    margin-left: 0;
    margin-right: 0;
  }
  .post-head {
    gap: 9px;
  }
  .post-avatar {
    width: 40px;
    height: 40px;
  }
  .post-text {
    margin: 13px 0;
    font-size: 15px;
  }
  .post-media {
    margin: 12px 0;
    border-radius: 11px;
  }
  .post-media img,
  .post-media video,
  .post-video-poster {
    max-height: 520px;
  }
  .post-actions {
    gap: 18px;
  }
  .profile-topbar {
    margin-bottom: 7px;
  }
  .profile-header {
    padding-top: 5px;
  }
  .profile-avatar {
    width: 82px;
    height: 82px;
    font-size: 28px;
  }
  .profile-name {
    font-size: 21px;
  }
  .profile-stats {
    gap: 28px;
  }
  .comment-form {
    align-items: stretch;
  }
  .comment-input {
    min-width: 0;
  }
  .comment-submit-btn {
    padding-left: 12px;
    padding-right: 12px;
  }
  .comments-panel .comment-avatar,
  .comments-panel .comment-avatar-wrap {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
  }
  .comments-panel .comment-avatar img,
  .comments-panel .comment-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}
/* =========================================================
   RESPONSIVE — SMALL PHONES
========================================================= */
@media (max-width: 380px) {
  .layout {
    padding-left: 0;
    padding-right: 0;
  }
  .card {
    padding: 13px;
  }
  .post-media {
    border-radius: 9px;
  }
  .post-media img,
  .post-media video,
  .post-video-poster {
    max-height: 460px;
  }
  .post-actions {
    gap: 15px;
  }
  .small-btn,
  .secondary-btn {
    padding: 8px 10px;
  }
  .comments-panel .comment-avatar,
  .comments-panel .comment-avatar-wrap {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
  }
  .comments-panel .comment-avatar img,
  .comments-panel .comment-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

/* =====================================================
   SELECTED FILE INFO
===================================================== */
.selected-media {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  max-width: 300px !important;
  min-width: 0 !important;
  margin-left: 8px !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  overflow: visible !important;
}
.selected-media .file-name {
  display: block !important;
  max-width: 300px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #2563eb !important;
  font-weight: 700 !important;
}
.selected-media .file-size {
  display: block !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.selected-media .file-error {
  display: block !important;
  color: #dc2626 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
