/* Syndinet frontend — consolidated; CDN libs stay separate in HTML */

/* --- Home feed, modals, profile offcanvas, admin filters --- */

    body { background: #f8f9fa; padding-top: 76px; overflow-x: hidden; }
    .checklist--create-post { list-style: none; padding-left: 0; }
    .checklist--create-post li { margin-bottom: 12px; font-size: 1.05rem; }
    .checklist--create-post .checkmark { color: #dc3545; font-weight: bold; margin-right: 10px; }
    .navbar-brand { font-weight: 700; }
    .navbar-logo { max-height: 30px; width: auto; }
    .post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
    .post-card .card-body { min-height: 120px; }
    .thumb-wrap {
      position: relative;
      overflow: hidden;
      border-top-left-radius: calc(var(--bs-border-radius) - 1px);
      border-top-right-radius: calc(var(--bs-border-radius) - 1px);
      background: #f8f9fa;
    }
    .thumb-wrap img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
    }
    .thumb-image {
      width: 100%;
      aspect-ratio: 16 / 9;
      background-size: cover;
      background-position: center;
    }
    .thumb-image-as-img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      display: block;
      background: #f8f9fa;
    }
    .post-card { content-visibility: auto; contain-intrinsic-size: 320px 420px; }
    .thumb-label {
      position: absolute;
      top: 10px;
      left: 10px;
      color: #fff;
      font-size: 0.75rem;
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      text-transform: capitalize;
    }
    .thumb-play {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 2.75rem;
      text-shadow: 0 2px 6px rgba(0,0,0,0.35);
    }
    .thumb-play i {
      line-height: 1;
    }
    .thumb-duration {
      position: absolute;
      right: 10px;
      bottom: 10px;
      background: rgba(0,0,0,0.7);
      color: #fff;
      font-size: 0.75rem;
      padding: 0.15rem 0.4rem;
      border-radius: 6px;
    }
    .thumb-gated-lock {
      position: absolute;
      top: 10px;
      right: 10px;
      z-index: 4;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #fff;
      color: #212529;
      border: 1px solid rgba(0,0,0,0.08);
      box-shadow: 0 2px 8px rgba(0,0,0,0.22);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      pointer-events: none;
    }
    .post-card .thumb-wrap .thumb-gated-lock {
      width: 18px;
      height: 18px;
      top: 5px;
      right: 5px;
      font-size: 0.62rem;
    }
    .hero-feature-card .thumb-play {
      font-size: 3rem;
      z-index: 2;
    }
    .hero-feature-card .thumb-duration {
      right: 16px;
      bottom: 16px;
      font-size: 0.85rem;
      z-index: 2;
    }
    .popular-categories {
      gap: 0.5rem;
      max-width: 420px;
      overflow-x: auto;
      flex-wrap: nowrap;
    }
    .popular-categories .nav-link {
      padding: 0.25rem 0.6rem;
      font-size: 0.9rem;
      border-radius: 999px;
      background: #f1f3f5;
      color: #212529;
      white-space: nowrap;
    }
    .popular-categories .nav-link:hover {
      background: #e9ecef;
    }
    .popular-categories .nav-link.active {
      background: #0d6efd;
      color: #fff;
    }
    .nav-link--post {
      padding: 0.25rem 0.6rem;
      font-size: 0.9rem;
      border-radius: 999px;
      background: #f1f3f5;
      color: #212529;
      white-space: nowrap;
      text-decoration: none;
    }
    .nav-link--post:hover {
      background: #e9ecef;
      color: #212529;
    }
    .nav-action-toolbar .nav-action-icon:hover { color: #0d6efd !important; }
    .admin-status {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: #f1f3f5;
      color: #212529;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      text-transform: none;
      letter-spacing: 0;
    }
    .admin-status:hover {
      background: #e9ecef;
    }
    .admin-status.active {
      background: #0d6efd;
      color: #fff;
    }
    .filter-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      border-radius: 999px;
      padding: 0.3rem 0.75rem;
      background: #f1f3f5;
      border: 1px solid #dee2e6;
      color: #495057;
      font-size: 0.9rem;
    }
    .filter-pill .filter-remove {
      color: #6c757d;
      text-decoration: none;
      font-weight: 700;
      line-height: 1;
    }
    .filter-pill .filter-remove:hover {
      color: #212529;
    }
    .tag-select {
      border-radius: 999px;
      background: #f1f3f5;
      border: 1px solid #dee2e6;
      color: #212529;
      font-size: 0.85rem;
      padding: 0.25rem 1.8rem 0.25rem 0.75rem;
    }
    .tag-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.6rem;
      border-radius: 999px;
      background: #f1f3f5;
      color: #212529;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      border: 1px solid #dee2e6;
      white-space: nowrap;
    }
    .tag-link:hover {
      background: #e9ecef;
      color: #212529;
    }
    .navbar-search-wrap { min-width: 160px; max-width: 280px; }
    .navbar-search-wrap .search-input-group { border-radius: 999px; overflow: hidden; background: #f1f3f5; }
    .navbar-search-wrap .search-input-group .input-group-text,
    .navbar-search-wrap .search-input-group .form-control {
      border: 0;
      background: transparent;
    }
    .navbar-search-wrap .search-input-group .form-control {
      padding-left: 0.05rem;
    }
    .search-input-group .input-group-text,
    .search-input-group .form-control {
      border: 0;
    }
    .search-input-group .form-control:focus {
      box-shadow: none;
      background: transparent;
    }
    .search-input-group .btn {
      border: 0;
    }
    .hero-feature-card {
      position: relative; display: block; border-radius: 0.5rem; overflow: hidden;
      box-shadow: 0 4px 20px rgba(0,0,0,0.12); transition: box-shadow 0.2s ease;
    }
    .hero-feature-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.18); }
    .hero-feature-card::before { content: ""; display: block; padding-top: 56.25%; }
    .hero-feature-card-bg {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0;
      background-size: cover; background-position: center;
      transition: transform 0.35s ease;
    }
    .hero-feature-card-bg-img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }
    .hero-feature-card:hover .hero-feature-card-bg,
    .hero-feature-card:hover .hero-feature-card-bg-img { transform: scale(1.03); }
    .hero-feature-card-overlay {
      position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
      background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    }
    .hero-feature-card-content {
      position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
      height: 200px;
      padding: 1.25rem 1.5rem 2.0rem 2.0rem;
      display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
    }
    .hero-feature-card-title {
      font-size: 1.65rem; font-weight: 700; color: #fff; margin: 0 0 0.4rem 0;
      line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,0.5);
      display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    }
    .hero-feature-card-meta {
      font-size: 0.875rem; opacity: 0.95; text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    }
    .hero-feature-card-content .hero-feature-card-meta-row {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    .hero-feature-card-content .hero-meta-text {
      display: flex;
      flex-direction: column;
      line-height: 1.25;
    }
    .hero-feature-card-content .hero-author-stack {
      position: relative;
      flex: 0 0 auto;
      height: 28px;
    }
    .hero-feature-card-content .hero-author-stack .avatar-item {
      position: absolute;
      top: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid rgba(255,255,255,0.9);
      box-shadow: 0 1px 3px rgba(0,0,0,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-feature-card-content .hero-author-stack .avatar-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .hero-feature-card-content .hero-author-stack .avatar-item.author-plus {
      font-size: 0.7rem;
      font-weight: 600;
      background: rgba(255,255,255,0.25);
      color: #fff;
    }
    /* lg+: правая колонка по высоте = 16:9 от ширины левой (2fr), пункты делят высоту поровну */
    .hero-feed-row {
      container-type: inline-size;
      container-name: heroFeed;
      display: grid;
      gap: 1.5rem;
      align-items: start;
      overflow-x: hidden;
      max-width: 100%;
    }
    @media (max-width: 991.98px) {
      .hero-feed-row {
        grid-template-columns: 1fr;
      }
    }
    @media (min-width: 992px) {
      .hero-feed-row {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
      }
      .hero-feed-main {
        min-width: 0;
      }
      .hero-feed-side {
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        height: calc((100cqi - 1.5rem) * 2 / 3 * 9 / 16);
        overflow-x: hidden;
        max-width: 100%;
      }
      .hero-feed-side .hero-sidebar {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        gap: 0;
        justify-content: space-between;
        overflow-x: hidden;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
      }
      .hero-feed-side .hero-sidebar .related-item {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
        overflow: visible;
        display: flex;
        flex-direction: column;
        padding: 0.45rem 0.55rem;
      }
      .hero-feed-side .hero-sidebar .related-item > .d-flex {
        flex: 0 0 auto;
        align-items: flex-start;
        overflow: hidden;
        min-width: 0;
      }
      .hero-feed-side .hero-sidebar .related-item .flex-grow-1 {
        min-width: 0;
      }
      .hero-feed-side .hero-sidebar .related-meta {
        margin-bottom: 0 !important;
      }
    }
    .hero-sidebar { padding-left: 0; gap: 0; }
    @media (max-width: 991.98px) {
      .hero-feed-row .hero-sidebar {
        gap: 0.5rem;
      }
    }
    .hero-sidebar .related-item img { object-fit: cover; }
    .hero-sidebar .related-item {
      padding: 0.75rem;
      border-bottom: 1px solid rgba(0,0,0,0.08);
    }
    .hero-sidebar .related-item:last-child { border-bottom: 0; }
    .hero-sidebar .related-item .related-thumb,
    .hero-sidebar .related-item .related-title { margin-top: 2px; margin-bottom: 2px; }
    .hero-sidebar .related-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    /* Same width as original (120px); taller than old 72px for more vertical presence */
    .hero-sidebar .related-thumb {
      width: 120px;
      height: 95px;
      flex: 0 0 120px;
      max-width: 120px;
      position: relative;
      overflow: hidden;
    }
    .hero-sidebar .related-thumb .thumb-placeholder,
    .hero-sidebar .related-thumb .related-thumb-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .hero-sidebar .related-thumb .related-thumb-image:not(img) {
      background-size: cover;
      background-position: center;
    }
    .hero-sidebar .related-thumb img.related-thumb-image { display: block; }
    .hero-sidebar .related-thumb .thumb-play {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 2.35rem;
      text-shadow: 0 2px 6px rgba(0,0,0,0.35);
      pointer-events: none;
    }
    .hero-sidebar .related-thumb .thumb-play i {
      line-height: 1;
    }
    .hero-sidebar .related-thumb .thumb-duration {
      position: absolute;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      color: #fff;
      font-size: 0.68rem;
      padding: 0.12rem 0.35rem;
      border-radius: 6px 0 0 0;
      pointer-events: none;
    }
    .hero-sidebar .related-thumb .thumb-gated-lock {
      width: 18px;
      height: 18px;
      top: 4px;
      right: 4px;
      font-size: 0.62rem;
    }
    .hero-sidebar .related-meta { align-items: flex-start; }
    .hero-sidebar .related-meta .author-stack { position: relative; align-self: flex-start; margin-top: 2px; flex: 0 0 auto; }
    .hero-sidebar .related-meta .author-stack .avatar-item {
      position: absolute;
      top: 0;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      overflow: hidden;
      border: 1.5px solid #fff;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .hero-sidebar .related-meta .author-stack .avatar-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .hero-sidebar .related-meta .author-stack .avatar-item.author-plus {
      font-size: 0.7rem;
      font-weight: 600;
      background: #f8f9fa;
      color: #6c757d;
    }
    .hero-sidebar .related-meta-text { display: flex; flex-direction: column; line-height: 1.2; }
    .hero-sidebar .related-authors {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .hero-sidebar .related-date { min-height: 1.1em; }
    /* Tighter strip above grid + “What’s New” */
    .whats-new-feed-bar {
      margin-top: 1rem;
      margin-bottom: 0.25rem;
      padding-top: 0;
      padding-bottom: 1rem;
    }
    @media (min-width: 992px) {
      .whats-new-feed-bar {
        margin-top: 1.5rem;
      }
    }
    .post-title {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .post-meta {
      align-items: flex-start;
    }
    .tag-pill {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-transform: capitalize;
    }
    .author-stack .avatar-item.author-plus {
      background-color: #f8f9fa;
      color: #6c757d;
      border-color: #dee2e6;
      font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
      font-weight: 600;
      font-size: 0.85rem;
      letter-spacing: 0.2px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .author-stack { position: relative; flex: 0 0 auto; }
    .author-stack .avatar-item {
      position: absolute;
      top: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      overflow: hidden;
      border: 1px solid #dee2e6;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }
    .author-stack .avatar-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border-radius: 50%;
    }
    /* Nav profile area */
    .nav-profile-area { gap: 0.35rem; }
    .nav-profile-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.4rem 0.6rem;
      border-radius: 999px;
      background: transparent;
      border: none;
      color: #6c757d;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      transition: background 0.2s, color 0.2s;
    }
    .nav-profile-link:hover { background: #f1f3f5; color: #212529; }
    .nav-profile-link i { font-size: 1.35rem; }
    .nav-profile-email { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    @media (max-width: 576px) {
      .navbar.navbar-light .container-fluid {
        flex-wrap: wrap;
        align-items: center;
      }
      .navbar.navbar-light .navbar-brand {
        margin-left: 0.5rem;
      }
      .navbar-search-wrap {
        order: 3;
        flex: 0 0 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.25rem 0.75rem 0.5rem;
      }
      .navbar-actions {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
      }
      .nav-profile-area {
        gap: 0.25rem;
      }
    }
.offcanvas-backdrop { z-index: 1105; }
.offcanvas.offcanvas-end { z-index: 1110; }
#profileEditOffcanvas.show { z-index: 1120; }
#commentsOffcanvas .offcanvas-body, #followingOffcanvas .offcanvas-body { display: flex; flex-direction: column; overflow: hidden; }
#commentsOffcanvas .comments-offcanvas-filters, #followingOffcanvas .following-offcanvas-filters { flex-shrink: 0; }
#profileCommentsList, #profileFollowingList { flex: 1; max-height: none; overflow-y: auto; }
.profile-view-wrap { max-width: 320px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem; }
.profile-view-avatar { width: 96px; height: 96px; border-radius: 50%; background: #e5e5e5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.profile-view-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-view-avatar .ph { width: 40px; height: 40px; background: #a3a3a3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.profile-view-name { font-size: 1.25rem; font-weight: 600; }
.profile-view-subtitle { color: #737373; font-size: 0.875rem; white-space: normal; overflow: visible; text-overflow: initial; word-break: break-word; }
.profile-view-icons { font-size: 1.35rem; display: inline-flex; gap: 12px; }
.profile-view-icons a, .profile-view-icons .profile-view-edit-icon, .profile-view-icons .profile-view-icon-link { color: #737373; text-decoration: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #f0f0f0; border: 1px solid #e5e5e5; }
.profile-view-icons a:hover, .profile-view-icons .profile-view-edit-icon:hover, .profile-view-icons .profile-view-icon-link:hover { color: #171717; background: #e9e9e9; }
.profile-view-icon-link--blank { cursor: default; }
.profile-view-about { line-height: 1.5; color: #404040; white-space: pre-wrap; }
.profile-form-label { display: block; font-size: 14px; font-weight: 500; color: #404040; margin-bottom: 8px; }
.profile-form-input { width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.profile-form-input:focus { outline: none; border-color: #171717; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
.profile-form-input::placeholder { color: #a3a3a3; }
.profile-avatar-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.profile-avatar-preview { width: 96px; height: 96px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; border: 2px solid #e5e5e5; transition: border-color .15s, background .15s; }
.profile-avatar-preview:hover { border-color: #d4d4d4; background: #ebebeb; }
.profile-avatar-preview .profile-avatar-placeholder { width: 40px; height: 40px; background: #a3a3a3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
.profile-avatar-input { position: absolute; width: 0; height: 0; opacity: 0; }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-list { max-height: 320px; overflow-y: auto; }
.profile-list--virtual { position: relative; }
.profile-list-spacer { pointer-events: none; }
.profile-list-viewport { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
.profile-list-viewport .profile-list-item { pointer-events: auto; position: absolute; left: 0; right: 0; margin-bottom: 0; }
.profile-list-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; background: #fafafa; border-radius: 8px; margin-bottom: 8px; border: 1px solid #f0f0f0; transition: background .15s; text-decoration: none; color: inherit; overflow: hidden; min-width: 0; }
.profile-list-item:hover { background: #f5f5f5; }
.profile-list-item-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e5e5e5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #737373; flex-shrink: 0; overflow: hidden; margin-right: 8px; }
.profile-list-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-list-item-body { flex: 1; min-width: 0; overflow: hidden; }
.profile-list-item-title { font-size: 14px; font-weight: 500; color: #171717; }
.profile-list-item-meta { font-size: 12px; color: #737373; margin-top: 2px; }
.profile-list-item-preview { margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
.comments-search-wrap { position: relative; }
.comments-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; pointer-events: none; }
.comments-search-input { padding-left: 2.25rem !important; }
.comments-filter-tag, .following-filter-tag { display: inline-flex; }
.comments-filter-remove { color: #6b7280; font-size: 18px; line-height: 1; }
.comments-filter-remove:hover { color: #374151; }
.comments-offcanvas-tags, .following-offcanvas-tags { margin-top: 0.25rem; }
.comments-sort-select { max-width: 140px; }
.following-search-wrap { position: relative; }
.following-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; pointer-events: none; }
.following-search-input { padding-left: 2.25rem !important; }
.following-filter-tag { display: inline-flex; }
.following-filter-remove { color: #6b7280; font-size: 18px; line-height: 1; }
.following-filter-remove:hover { color: #374151; }
.following-sort-select { max-width: 140px; }
.comments-search-input, .following-search-input { background: #f1f3f5; border-color: #e9ecef; }
.profile-list-empty { padding: 48px 24px; text-align: center; font-size: 14px; color: #737373; }
.profile-list-loading { padding: 24px; text-align: center; font-size: 14px; color: #a3a3a3; }
.profile-unfollow { padding: 6px 12px; font-size: 12px; font-weight: 500; color: #dc2626; background: transparent; border: 1px solid #fecaca; border-radius: 6px; cursor: pointer; transition: all .15s; }
.profile-unfollow:hover { background: #fef2f2; }
.profile-comment-delete { width: 28px; height: 28px; padding: 0; font-size: 1.2rem; line-height: 1; }
.comment-item-author-link { cursor: pointer; text-decoration: none; color: inherit; }
.comment-item-author-link:hover { text-decoration: underline; }
.modal-backdrop.show { z-index: 1300; }
.modal.show { z-index: 1310; }
.modal.show .modal-dialog { position: relative; z-index: 1; }
#createPostModal .modal-content, #infoModal .modal-content { background: #fff; }
    #createPostModal #createPostModalLabel { white-space: nowrap; }
    .search-results-layout { align-items: flex-start; }
    .search-filter-panel {
      border: 1px solid #e9ecef;
      border-radius: 12px;
      background: #fff;
      overflow: hidden;
      box-shadow: 0 1px 2px rgba(0,0,0,.04);
    }
    .search-filter-panel-title {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: #6c757d;
      padding: 0.85rem 1rem 0.35rem;
      margin: 0;
    }
    .search-filter-nav-wrap {
      max-height: min(70vh, 520px);
      overflow-y: auto;
    }
    .search-filter-nav {
      list-style: none;
      padding: 0 0 0.5rem;
      margin: 0;
    }
    .search-filter-nav a {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0.5rem 1rem;
      color: #212529;
      text-decoration: none;
      font-size: 0.9rem;
      line-height: 1.3;
      border-left: 3px solid transparent;
      transition: background .15s ease, border-color .15s ease;
    }
    .search-filter-nav a:hover { background: #f1f3f5; color: #212529; }
    .search-filter-nav a.is-active {
      background: #e7f1ff;
      border-left-color: #0d6efd;
      font-weight: 600;
    }
    .search-filter-nav i {
      font-size: 1.2rem;
      color: #6c757d;
      flex-shrink: 0;
    }
    .search-filter-nav a.is-active i { color: #0d6efd; }


/* --- Post page (scoped to body.post-content-page) --- */

html:has(body.post-content-page) {
  scroll-behavior: smooth;
}

@scope (body.post-content-page) {
      body { background: #f8f9fa; padding-top: 76px; }
      .checklist--create-post { list-style: none; padding-left: 0; }
      .checklist--create-post li { margin-bottom: 12px; font-size: 1.05rem; }
      .checklist--create-post .checkmark { color: #dc3545; font-weight: bold; margin-right: 10px; }
      .navbar-brand { font-weight: 700; }
      /* 16:9 frame; full image visible (letterboxing if not 16:9) */
      .poster-preview img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: contain;
        object-position: center;
        background: #f8f9fa;
        display: block;
      }
      .author-stack { position: relative; flex: 0 0 auto; }
      .author-stack .avatar-item {
        position: absolute;
        top: 0;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid #dee2e6;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
      }
      .author-stack .avatar-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 50%;
      }
      .author-stack .avatar-item.author-plus {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
        font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
        font-weight: 600;
        font-size: 0.8rem;
        letter-spacing: 0.2px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .post-title { line-height: 1.25; }
      .post-meta { align-items: flex-start; }
      .author-avatar { object-fit: cover; display: block; flex: 0 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
      .list-group-item.author-card { border-radius: 12px; border: 1px solid #e9ecef; padding: 1.25rem; margin-bottom: 0.5rem; background: #fff; }
      .related-item img { object-fit: cover; }
      .related-item {
        padding-top: 10px;
        padding-bottom: 10px;
      }
      .related-item .related-thumb,
      .related-item .related-title {
        margin-top: 2px;
        margin-bottom: 2px;
      }
      .related-title {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .related-thumb {
        width: 120px;
        height: 72px;
        flex: 0 0 120px;
        position: relative;
        overflow: hidden;
      }
      .thumb-gated-lock {
        position: absolute;
        top: 6px;
        right: 6px;
        z-index: 4;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #fff;
        color: #212529;
        border: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 2px 8px rgba(0,0,0,0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        pointer-events: none;
      }
      .media-wrap .thumb-gated-lock {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
      }
      .gated-no-select {
        -webkit-user-select: none;
        user-select: none;
      }
      .gated-locked-body {
        cursor: pointer;
      }
      .gated-poster-locked-wrap {
        min-height: 220px;
      }
      @media (min-width: 576px) {
        .gated-poster-locked-wrap {
          min-height: 260px;
        }
      }
      .gated-poster-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1.25rem 1rem;
        background: rgba(33, 37, 41, 0.62);
        border-radius: inherit;
        pointer-events: none;
      }
      .gated-poster-overlay .gated-poster-lock-icon {
        display: block;
        color: #fff;
        font-size: clamp(4.5rem, 18vw, 7.5rem);
        line-height: 1;
        filter: drop-shadow(0 4px 20px rgba(0,0,0,0.45));
      }
      .gated-poster-overlay .gated-poster-overlay-title {
        max-width: 24rem;
        color: #fff;
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.03em;
        text-transform: none;
        text-shadow: 0 2px 14px rgba(0,0,0,0.55);
      }
      .gated-poster-overlay .gated-poster-overlay-sub {
        max-width: 26rem;
        color: #fff;
        font-size: clamp(1rem, 3.2vw, 1.2rem);
        font-weight: 600;
        line-height: 1.35;
        opacity: 1;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
      }
      .gated-poster-overlay .gated-poster-overlay-hint {
        margin-top: 0.85rem;
        color: rgba(255,255,255,0.92);
        font-size: 0.875rem;
        font-weight: 600;
        opacity: 1;
        text-shadow: 0 1px 8px rgba(0,0,0,0.45);
      }
      /* Post body: avoid break-all / auto hyphens; tame Quill paragraph spacing */
      /* Match CMS Quill .ql-editor so saved HTML looks like the editor (not Bootstrap paragraph margins). */
      #postContent .post-body-quill.ql-editor {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 0;
        font-family: Helvetica, Arial, sans-serif;
        font-size: 13px;
        hyphens: manual;
        -webkit-hyphens: manual;
        word-break: normal;
      }
      .hero-feature-card .thumb-gated-lock {
        z-index: 4;
      }
      .related-thumb .thumb-gated-lock {
        width: 18px;
        height: 18px;
        top: 4px;
        right: 4px;
        font-size: 0.62rem;
      }
      /* Admin status marker on thumbnails */
      .approval-indicator {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        background: #fff;
        color: #212529;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      }
      .approval-indicator.approved { color: #2f9e44; }
      .approval-indicator.rejected { color: #e03131; }
      .related-thumb img,
      .related-thumb .thumb-placeholder,
      .related-thumb .related-thumb-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .related-thumb .related-thumb-image {
        background-size: cover;
        background-position: center;
      }
      .related-thumb .thumb-play {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2.35rem;
        text-shadow: 0 2px 6px rgba(0,0,0,0.35);
        pointer-events: none;
      }
      .related-thumb .thumb-play i {
        line-height: 1;
      }
      .related-thumb .thumb-duration {
        position: absolute;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.7);
        color: #fff;
        font-size: 0.68rem;
        padding: 0.12rem 0.35rem;
        border-radius: 6px 0 0 0;
        pointer-events: none;
      }
      .media-wrap {
        position: relative;
      }
      .admin-status-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        background: #f1f3f5;
        border: 1px solid #dee2e6;
        color: #212529;
        font-size: 0.85rem;
        font-weight: 500;
      }
      .admin-status-badge.pending {
        left: auto;
        right: 10px;
        padding: 0.2rem 0.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .tag-link {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        background: #f1f3f5;
        color: #212529;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        border: 1px solid #dee2e6;
        white-space: nowrap;
      }
      .tag-link:hover {
        background: #e9ecef;
        color: #212529;
      }
      /* Nav profile area */
      .nav-profile-area { gap: 0.5rem; }
      .nav-profile-link {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.6rem;
        border-radius: 999px;
        background: transparent;
        border: none;
        color: #6c757d;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
      }
      .nav-profile-link:hover { background: #f1f3f5; color: #212529; }
      .nav-profile-link i { font-size: 1.35rem; }
      .nav-profile-email { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
      /* Engagement buttons */
      .engagement-buttons { gap: 0.5rem; flex-wrap: wrap; }
      .engagement-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 0.9rem;
        border-radius: 999px;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s;
      }
      .engagement-btn--follow { border: 1px solid #dee2e6; background: #fff; color: #495057; }
      .engagement-btn--follow:hover { background: #f8f9fa; border-color: #adb5bd; color: #495057; }
      .engagement-btn--follow.btn-primary { background: #0d6efd; border-color: #0d6efd; color: #fff; }
      .engagement-btn--follow.btn-primary:hover { color: #fff; }
      .engagement-btn--comment { border: 1px solid #dee2e6; background: #fff; color: #495057; }
      .post-meta-row { gap: 0.75rem; }
      .engagement-btn--comment:hover { background: #f8f9fa; border-color: #adb5bd; color: #495057; }
      .engagement-btn--share { border: 1px solid #dee2e6; background: #fff; color: #495057; }
      .engagement-btn--share:hover,
      .engagement-btn--share:focus,
      .engagement-btn--share.show { background: #f8f9fa; border-color: #adb5bd; color: #495057; }
      /* Comments section */
      .comments-section {
        margin-top: 2.5rem;
        padding-top: 2rem;
        border-top: 1px solid #e9ecef;
      }
      .comments-section-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.25rem; color: #212529; }
      .comments-form { margin-bottom: 1.5rem; }
      .comments-form.comment-form-disabled textarea { opacity: 0.7; pointer-events: none; }
      .comments-form textarea { border-radius: 12px; resize: vertical; min-height: 90px; }
      .comment-textarea-wrap { display: inline-block; width: 100%; }
      .comment-textarea-wrap textarea { padding-bottom: 1.75rem; padding-right: 4rem; }
      .comment-char-count { bottom: 0.75rem; right: 0.75rem; pointer-events: none; }
      .comment-user-row .comment-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
      .comment-user-row .comment-user-avatar-placeholder { width: 36px; height: 36px; border-radius: 50%; background: #e5e5e5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #737373; flex-shrink: 0; }
      .comment-user-name-link:hover { text-decoration: underline !important; }
      .comment-user-row:empty { display: none; }
      .comments-form .btn { border-radius: 999px; padding: 0.45rem 1.1rem; font-weight: 500; }
      .comments-list { display: flex; flex-direction: column; gap: 1rem; }
      .comment-item {
        padding: 1rem 1.25rem;
        background: #f8f9fa;
        border-radius: 12px;
        border: 1px solid #e9ecef;
      }
      .comment-item-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
      .comment-item-avatar {
        width: 36px; height: 36px; min-width: 36px; min-height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
        display: flex; align-items: center; justify-content: center;
        color: #fff; font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
        overflow: hidden;
      }
      .comment-item-avatar img {
        width: 100%; height: 100%; object-fit: cover;
      }
      .comment-item-author { font-weight: 600; font-size: 0.9rem; color: #212529; }
      .comment-item-date { font-size: 0.8rem; color: #868e96; }
      .comment-item-body { font-size: 0.95rem; line-height: 1.5; color: #495057; white-space: pre-wrap; word-break: break-word; margin-left: calc(36px + 0.75rem); }
      .admin-status {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.6rem;
        border-radius: 999px;
        background: #f1f3f5;
        color: #212529;
        font-size: 0.9rem;
        font-weight: 500;
        text-decoration: none;
        text-transform: none;
        letter-spacing: 0;
        white-space: nowrap;
      }
      .admin-status:hover {
        background: #e9ecef;
        color: #212529;
      }
      .admin-status.active {
        background: #0d6efd;
        color: #fff;
      }
      .related-authors {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
      .related-meta {
        align-items: flex-start;
      }
      .related-meta .author-stack {
        align-self: flex-start;
        margin-top: 2px;
      }
      .related-meta-text {
        display: flex;
        flex-direction: column;
        line-height: 1.2;
      }
      .related-date {
        min-height: 1.1em;
      }
      .popular-categories {
        gap: 0.5rem;
        max-width: 420px;
        overflow-x: auto;
        flex-wrap: nowrap;
      }
      .popular-categories .nav-link {
        padding: 0.25rem 0.6rem;
        font-size: 0.9rem;
        border-radius: 999px;
        background: #f1f3f5;
        color: #212529;
        white-space: nowrap;
      }
      .popular-categories .nav-link:hover {
        background: #e9ecef;
      }
      .popular-categories .nav-link.active {
        background: #0d6efd;
        color: #fff;
      }
      .nav-link--post {
        padding: 0.25rem 0.6rem;
        font-size: 0.9rem;
        border-radius: 999px;
        background: #f1f3f5;
        color: #212529;
        white-space: nowrap;
        text-decoration: none;
      }
      .nav-link--post:hover {
        background: #e9ecef;
        color: #212529;
      }
      .nav-action-toolbar .nav-action-icon:hover { color: #0d6efd !important; }
      .navbar-search-wrap { min-width: 160px; max-width: 280px; }
      .navbar-search-wrap .search-input-group { border-radius: 999px; overflow: hidden; background: #f1f3f5; }
      .navbar-search-wrap .search-input-group .input-group-text,
      .navbar-search-wrap .search-input-group .form-control {
        border: 0;
        background: #f1f3f5;
      }
      .navbar-search-wrap .search-input-group .form-control {
        padding-left: 0.05rem;
      }
      .search-input-group .input-group-text,
      .search-input-group .form-control {
        border: 0;
        background: #fff;
      }
      .search-input-group .form-control:focus {
        box-shadow: none;
      }
      .search-input-group .btn {
        border: 0;
      }
      @media (max-width: 576px) {
        .navbar.navbar-light .container-fluid {
          flex-wrap: wrap;
          align-items: center;
        }
        .navbar.navbar-light .navbar-brand {
          margin-left: 0.75rem;
        }
        .navbar-search-wrap {
          order: 3;
          flex: 0 0 100%;
          max-width: 100%;
          min-width: 0;
          padding: 0.25rem 0.75rem 0.5rem;
        }
        .navbar-actions {
          order: 2;
          margin-left: auto;
          margin-right: 0.75rem;
        }
        .nav-profile-area {
          gap: 0.25rem;
        }
      }
      .meta-pills .badge {
        font-weight: 500;
        padding: 0.45rem 0.9rem;
        font-size: 1rem;
      }
      .tag-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-transform: lowercase;
        color: #6c757d;
        border-color: #dee2e6;
        background: #f8f9fa;
      }
      .tag-pill:hover {
        color: #495057;
        background: #e9ecef;
        border-color: #ced4da;
      }
      .status-pill.active {
        border-color: transparent;
        color: #fff;
      }
      .status-pill.pending.active {
        background: #f59f00;
        color: #111;
      }
      .status-pill.approved.active {
        background: #2f9e44;
      }
      .status-pill.rejected.active {
        background: #e03131;
      }
      .pill-divider {
        color: #adb5bd;
        font-weight: 600;
        padding: 0 0.25rem;
        align-self: center;
      }
      .video-js {
        width: 100%;
        height: auto;
      }
      .video-js .vjs-tech {
        width: 100%;
        height: auto;
      }
      .video-js.is-loading {
        opacity: 0;
      }
      .video-js.is-ready {
        opacity: 1;
        transition: opacity 120ms ease-in;
      }
      .vjs-autoplay .vjs-big-play-button {
        display: none;
      }
      .vjs-autoplay-failed .vjs-big-play-button {
        display: block;
      }
      .video-pinned-placeholder {
        display: none;
        position: fixed;
        z-index: 1070;
        width: 350px;
        height: 200px;
        bottom: 10px;
        right: 15px;
        background: #000;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
        transition: opacity 0.2s ease;
        overflow: hidden;
      }
      .video-pinned-placeholder.is-visible {
        display: block;
      }
      .video-pinned-placeholder {
        pointer-events: none;
      }
      .video-pinned-placeholder .video-js {
        width: 100% !important;
        height: 100% !important;
        pointer-events: auto;
      }
  .offcanvas-backdrop { z-index: 1105; }
  .offcanvas.offcanvas-end { z-index: 1110; }
  #profileEditOffcanvas.show { z-index: 1120; }
  #commentsOffcanvas .offcanvas-body, #followingOffcanvas .offcanvas-body { display: flex; flex-direction: column; overflow: hidden; }
  #commentsOffcanvas .comments-offcanvas-filters, #followingOffcanvas .following-offcanvas-filters { flex-shrink: 0; }
  #profileCommentsList, #profileFollowingList { flex: 1; max-height: none; overflow-y: auto; }
  .profile-view-wrap { max-width: 320px; margin: 0 auto; padding-left: 3rem; padding-right: 3rem; }
  .profile-view-avatar { width: 96px; height: 96px; border-radius: 50%; background: #e5e5e5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .profile-view-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-view-avatar .ph { width: 40px; height: 40px; background: #a3a3a3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
  .profile-view-name { font-size: 1.25rem; font-weight: 600; }
  .profile-view-subtitle { color: #737373; font-size: 0.875rem; white-space: normal; overflow: visible; text-overflow: initial; word-break: break-word; }
  .profile-view-icons { font-size: 1.35rem; display: inline-flex; gap: 12px; }
  .profile-view-icons a, .profile-view-icons .profile-view-edit-icon, .profile-view-icons .profile-view-icon-link { color: #737373; text-decoration: none; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #f0f0f0; border: 1px solid #e5e5e5; }
  .profile-view-icons a:hover, .profile-view-icons .profile-view-edit-icon:hover, .profile-view-icons .profile-view-icon-link:hover { color: #171717; background: #e9e9e9; }
  .profile-view-icon-link--blank { cursor: default; }
  .profile-view-about { line-height: 1.5; color: #404040; white-space: pre-wrap; }
  .profile-form-label { display: block; font-size: 14px; font-weight: 500; color: #404040; margin-bottom: 8px; }
  .profile-form-input { width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
  .profile-form-input:focus { outline: none; border-color: #171717; box-shadow: 0 0 0 3px rgba(0,0,0,.05); }
  .profile-avatar-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
  .profile-avatar-preview { width: 96px; height: 96px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; border: 2px solid #e5e5e5; transition: border-color .15s, background .15s; }
  .profile-avatar-preview:hover { border-color: #d4d4d4; background: #ebebeb; }
  .profile-avatar-preview .profile-avatar-placeholder { width: 40px; height: 40px; background: #a3a3a3; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center/contain no-repeat; }
  .profile-avatar-input { position: absolute; width: 0; height: 0; opacity: 0; }
  .profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
  .profile-list { max-height: 320px; overflow-y: auto; }
  .profile-list--virtual { position: relative; }
  .profile-list-spacer { pointer-events: none; }
  .profile-list-viewport { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; }
  .profile-list-viewport .profile-list-item { pointer-events: auto; position: absolute; left: 0; right: 0; margin-bottom: 0; }
  .profile-list-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 10px; background: #fafafa; border-radius: 8px; margin-bottom: 8px; border: 1px solid #f0f0f0; transition: background .15s; text-decoration: none; color: inherit; overflow: hidden; min-width: 0; }
  .profile-list-item:hover { background: #f5f5f5; }
  .profile-list-item-avatar { width: 36px; height: 36px; border-radius: 50%; background: #e5e5e5; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #737373; flex-shrink: 0; overflow: hidden; margin-right: 8px; }
  .profile-list-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .profile-list-item-body { flex: 1; min-width: 0; overflow: hidden; }
  .profile-list-item-title { font-size: 14px; font-weight: 500; color: #171717; }
  .profile-list-item-meta { font-size: 12px; color: #737373; margin-top: 2px; }
  .profile-list-item-preview { margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
  .comments-search-wrap { position: relative; }
  .comments-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; pointer-events: none; }
  .comments-search-input { padding-left: 2.25rem !important; }
  .comments-filter-tag, .following-filter-tag { display: inline-flex; }
  .comments-filter-remove { color: #6b7280; font-size: 18px; line-height: 1; }
  .comments-filter-remove:hover { color: #374151; }
  .comments-offcanvas-tags, .following-offcanvas-tags { margin-top: 0.25rem; }
  .comments-sort-select { max-width: 140px; }
  .following-search-wrap { position: relative; }
  .following-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 16px; pointer-events: none; }
  .following-search-input { padding-left: 2.25rem !important; }
  .following-filter-tag { display: inline-flex; }
  .following-filter-remove { color: #6b7280; font-size: 18px; line-height: 1; }
  .following-filter-remove:hover { color: #374151; }
  .following-sort-select { max-width: 140px; }
  .comments-search-input, .following-search-input { background: #f1f3f5; border-color: #e9ecef; }
  .profile-list-empty { padding: 48px 24px; text-align: center; font-size: 14px; color: #737373; }
  .profile-unfollow { padding: 6px 12px; font-size: 12px; font-weight: 500; color: #dc2626; background: transparent; border: 1px solid #fecaca; border-radius: 6px; cursor: pointer; transition: all .15s; }
  .profile-unfollow:hover { background: #fef2f2; }
  .profile-comment-delete { width: 28px; height: 28px; padding: 0; font-size: 1.2rem; line-height: 1; }
  .comment-item-author-link { cursor: pointer; text-decoration: none; color: inherit; }
  .comment-item-author-link:hover { text-decoration: underline; }
  .comment-menu-btn { font-size: 1.25rem !important; }
  .modal-backdrop.show { z-index: 1300; }
  .modal.show { z-index: 1310; }
  .modal.show .modal-dialog { position: relative; z-index: 1; }
  #createPostModal .modal-content, #infoModal .modal-content { background: #fff; }
      #createPostModal #createPostModalLabel { white-space: nowrap; }
}
