/* ── Fix HTML hidden attribute being overridden by display rules ── */
[hidden] { display: none !important; }

/* ── Layout ─────────────────────────────────────────────── */
.feed-wrap {
    margin-top: -16px;
}

.index-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feed-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

/* ── Right sidebar ───────────────────────────────────────── */
.feed-sidebar {
    flex: 0 0 auto;
    width: min(376px, max(232px, calc(100% - 792px)));
    margin-right: -32px;
    position: sticky;
    top: var(--sidebar-sticky-top, 0px);
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-bottom: 9px;
    padding-right: 9px;
}

.feed-sidebar__block {
    height: 318px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 13px 16px 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feed-sidebar__block-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2933;
    margin: 0;
    flex-shrink: 0;
}

.sidebar-boats-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 6px;
}

.sidebar-boats-list li {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
}

.sidebar-boat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    width: 100%;
    text-decoration: none;
    min-width: 0;
}

.sidebar-boat-item__thumb {
    height: 70%;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
    overflow: hidden;
    background: #e4ecf4;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-boat-item__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sidebar-boat-item__placeholder { font-size: 14px; line-height: 1; color: #9ca3af; }

.sidebar-boat-item__name {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.sidebar-boat-item:hover .sidebar-boat-item__name { color: #0b1f33; }

.sidebar-boat-item__likes {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 6px;
}

.sidebar-boat-item__likes-icon { color: #9ca3af; flex-shrink: 0; }
.sidebar-boat-item:hover .sidebar-boat-item__likes-icon { color: #6b7280; }
.sidebar-boat-item__likes-count { color: #9ca3af; font-size: 13px; }
.sidebar-boat-item:hover .sidebar-boat-item__likes-count { color: #6b7280; }

/* ── Sidebar popular authors ─────────────────────────────── */
.sidebar-authors-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    overflow: hidden;
}

.sidebar-author-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.sidebar-author-item__avatar-wrap {
    flex-shrink: 0;
    line-height: 0;
}

.sidebar-author-item__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.sidebar-author-item__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #0B1F33;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

.sidebar-author-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sidebar-author-item__name {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.sidebar-author-item__name:hover { color: #0b1f33; }

.sidebar-author-item__boat {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.sidebar-author-item__boat:hover { color: #6b7280; }

.sidebar-author-item__stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 3px;
}

.sidebar-author-item__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

a.sidebar-author-item__stat:hover { color: #6b7280; }

/* ── Sidebar popular posts ───────────────────────────────── */
.sidebar-posts-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sidebar-post-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.sidebar-post-item__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-post-item__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4ecf4;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.sidebar-post-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.sidebar-post-item__title {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
    line-height: 1.3;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-item__title:hover { color: #0b1f33; }

.sidebar-post-item__author {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.sidebar-post-item__author:hover { color: #6b7280; }

.sidebar-post-item__stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 3px;
}

.sidebar-post-item__stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
}

a.sidebar-post-item__stat:hover { color: #6b7280; }

.feed-heading {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1f2933;
}

.feed-empty {
    color: #9ca3af;
    font-size: 15px;
    margin-top: 32px;
}

/* ── Feed header row (tabs + settings button) ───────────── */
.feed-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.feed-sidebar__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 2px;
    padding-right: 15px;
    min-height: 35px;
    margin-bottom: 10px;
}

.feed-sidebar__add-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    font-family: inherit;
    line-height: 1;
}
.feed-sidebar__add-btn:hover { background: #ea6c0b; color: #fff; }

@media (min-width: 901px) {
    .feed-sidebar__add-btn--guest { background: #0b4f7a; }
    .feed-sidebar__add-btn--guest:hover { background: #0d6199; }
}

.profile-add-post-btn {
    display: inline-flex; align-items: center; margin-left: auto; margin-right: 20px;
    padding: 10px 14px; background: #f97316; color: #fff;
    border: none; border-radius: 10px; font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; font-family: inherit; line-height: 1;
    transition: background 0.15s;
}
.profile-add-post-btn:hover { background: #ea6c0b; }

/* ── Feed tabs ──────────────────────────────────────────── */
.feed-tabs {
    display: flex;
    gap: 4px;
}

.feed-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.feed-tab:hover { color: #0B1F33; }
.feed-tab--active { color: #0B1F33; border-bottom-color: #0B1F33; }

/* ── Settings button ────────────────────────────────────── */
.feed-toolbar {
    display: flex;
    align-items: center;
    padding-bottom: 8px;
}

.feed-settings-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.feed-settings-btn:hover { background: #f9fafb; }
.feed-settings-btn--active { border-color: #f97316; }

.feed-filters-badge {
    min-width: 16px;
    height: 16px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 2px;
}

/* ── Shared filter-bar components (used on boat_detail, profile) ── */
.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #ffffff;
    border: 1.5px solid #c8d9ea;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s;
    font-family: inherit;
    line-height: 1.4;
    flex-shrink: 0;
}
.fb-btn:hover { border-color: #6b96b8; background-color: #ffffff; }
.fb-btn--active { border-color: #f97316; }
.fb-btn--active:hover { border-color: #f97316; }

.fb-select {
    display: inline-block;
    width: auto;
    padding: 7px 28px 7px 12px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    border: 1.5px solid #c8d9ea;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s;
    font-family: inherit;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}
.fb-btn:hover,
.fb-select:hover { border-color: #6b96b8; background-color: #ffffff; }
.fb-btn--active,
.fb-select--active { border-color: #f97316; background-color: #ffffff; }
.fb-btn--active:hover,
.fb-select--active:hover { border-color: #f97316; }

.fb-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
    flex-shrink: 0;
    margin-right: 4px;
}
.fb-arrow {
    color: #9ca3af;
    margin-left: 4px;
    flex-shrink: 0;
    vertical-align: middle;
}

.fb-item {
    position: relative;
    flex-shrink: 0;
}

.fb-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1.5px solid #d5e3f0;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    z-index: 300;
}

.fb-panel__select-all {
    display: block;
    width: 100%;
    padding: 6px 12px;
    background: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #0B1F33;
    cursor: pointer;
    margin-bottom: 4px;
    font-family: inherit;
}
.fb-panel__select-all:hover { background: #f0f4f8; }

.fb-panel__option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 13px;
    color: #1f2933;
    cursor: pointer;
    user-select: none;
}
.fb-panel__option:hover { background: #f0f4f8; }
.fb-panel__option--active { font-weight: 600; color: #0B1F33; background: #eef3fa; }
.fb-panel__option input { accent-color: #0B1F33; cursor: pointer; flex-shrink: 0; }

.fb-cascade-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.fb-select--clearable { padding-right: 32px; }
.fb-no-arrow { background-image: none !important; }

.fb-x {
    position: absolute;
    right: 8px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 3px;
    line-height: 1;
    transition: color 0.15s;
}
.fb-x:hover { color: #1f2933; }

.fb-sep { display: inline-block; width: 0; }

.fb-apply {
    display: inline-block;
    padding: 7px 18px;
    background: #f97316;
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    box-sizing: border-box;
}
.fb-apply:hover { background: #ea6c0b; }

.fb-reset {
    padding: 7px 12px;
    margin-left: -8px;
    color: #6b7280;
    font-size: 13px;
    text-decoration: none;
    border-radius: 20px;
    transition: color 0.15s;
    white-space: nowrap;
}
.fb-reset:hover { color: #0B1F33; }

/* ── Modal custom dropdowns ─────────────────────────────── */
.fm-dd {
    flex: 1;
}

.fm-dd__btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #fff;
    border: 1.5px solid #c8d9ea;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1f2933;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.15s;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
    box-sizing: border-box;
}
.fm-dd__btn:hover { border-color: #6b96b8; }
.fm-dd__btn--active { border-color: #c8d9ea; }

.fm-dd__btn-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fm-dd__arrow {
    color: #9ca3af;
    flex-shrink: 0;
}

.fm-dd__panel {
    margin-top: 4px;
    background: #fff;
    border: 1.5px solid #d5e3f0;
    border-radius: 10px;
    padding: 6px 0;
    max-height: 180px;
    overflow-y: auto;
}

.fm-dd__option {
    padding: 7px 12px;
    font-size: 13px;
    color: #1f2933;
    cursor: pointer;
    transition: background 0.1s;
}
.fm-dd__option:hover { background: #f0f4f8; }
.fm-dd__option--active { font-weight: 600; color: #0B1F33; background: #eef3fa; }

/* ── Filter modal ────────────────────────────────────────── */
.feed-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.feed-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 480px;
    max-width: calc(100vw - 32px);
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    overflow: hidden;
}

.feed-modal__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 6px 0;
    flex-shrink: 0;
}

.feed-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.15s;
}
.feed-modal__close:hover { color: #1f2933; }

.feed-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.fm-section:first-child { padding-top: 10px; }

.feed-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* ── Modal sections ──────────────────────────────────────── */
.fm-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
}
.fm-section:last-child { border-bottom: none; }

.fm-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.fm-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.fm-section-header .fm-label { margin-bottom: 0; }

.fm-toggle-all {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    font-family: inherit;
    padding: 0;
    transition: color 0.15s;
}
.fm-toggle-all:hover { color: #1f2933; }

/* Источник pills */
.fm-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fm-pill {
    padding: 6px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fm-pill:hover { border-color: #9ca3af; }
.fm-pill--active { border-color: #111827; background: #111827; color: #fff; }

/* Категории */
.fm-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.fm-cat-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1.5px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 400;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fm-cat-item:hover { border-color: #9ca3af; }
.fm-cat-item:has(input:checked) { border-color: #111827; background: #111827; color: #fff; }
.fm-cat-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Rows */
.fm-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fm-select {
    width: 100%;
    padding: 8px 28px 8px 12px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.fm-select:hover { border-color: #9ca3af; }
.fm-select:focus { outline: none; border-color: #6b96b8; }

.fm-cascade {
    display: flex;
    align-items: center;
    gap: 8px;
}
.fm-cascade .fm-select { flex: 1; }

.fm-x {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}
.fm-x:hover { background: #e5e7eb; color: #1f2933; }

/* Footer buttons */
.fm-reset {
    padding: 8px 16px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.fm-reset:hover { color: #1f2933; background: #f3f4f6; }

.fm-apply {
    padding: 8px 20px;
    background: #f97316;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.fm-apply:hover { background: #ea6c0b; }

/* ── Add-post modal ─────────────────────────────────────── */
.feed-modal__box--auto {
    height: auto;
    max-height: calc(100vh - 64px);
}

.apm-header {
    justify-content: space-between;
    padding: 14px 16px 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.apm-header__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2933;
}

.apm-body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apm-choice {
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.15s;
}
.apm-choice:hover { border-color: #c8d9ea; }
.apm-choice--active { border-color: #0b2a48; }
.apm-choice--active:hover { border-color: #0b2a48; }
.apm-choice--disabled { opacity: 0.7; cursor: default; pointer-events: none; }
.apm-choice--disabled .apm-radio { cursor: default; }
.apm-choice--disabled a { pointer-events: auto; }

.apm-choice__row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
}

.apm-radio {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #0b2a48;
    cursor: pointer;
}

.apm-choice__content {
    flex: 1;
    cursor: pointer;
}

.apm-choice__title {
    font-size: 14px;
    font-weight: 600;
    color: #0b2a48;
    margin-bottom: 3px;
}

.apm-choice__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.apm-boat-section {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.apm-boat-section .fb-item {
    width: 100%;
}

.apm-boat-dd-btn {
    width: 100%;
    justify-content: space-between;
}

.apm-boat-dd-panel {
    max-height: 220px;
    overflow-y: auto;
}

.apm-boat-hint {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.apm-boat-hint a { color: #9ca3af; text-decoration: underline; }
.apm-boat-hint a:hover { color: #6b7280; }

.apm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #f97316;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
}
.apm-btn:hover { background: #ea6c0b; color: #fff; }
.apm-btn--full { width: 100%; }

/* ── Post card ──────────────────────────────────────────── */
.feed-card {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    display: flex;
    flex-direction: row;
    height: 255px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feed-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-1px);
}

.feed-card__body {
    flex: 1;
    min-width: 0;
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
}

.feed-card__images {
    flex: 0 0 auto;
    align-self: stretch;
    padding: 12px 12px 12px 0;
}
.feed-card__img {
    width: 300px;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.feed-card__title {
    margin: 0 0 4px;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}
.feed-card__title a {
    color: #1f2933;
    text-decoration: none;
    transition: color 0.15s;
}
.feed-card__title a:hover { color: #0B1F33; }

.feed-card__excerpt {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 10px 0 0;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
}
.feed-card__excerpt .geo-embed-link { vertical-align: top; }

.feed-card__info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    overflow: hidden;
}
.feed-card__author-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    flex-shrink: 1;
    overflow: hidden;
}
.feed-card__author-avatar-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.feed-card__info-avatar {
    width: 25px;
    height: 25px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    border: 1px solid #e5e7eb;
}
.feed-card__info-avatar--placeholder {
    background: #0B1F33;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}
.feed-card__author {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    min-width: 0;
}
.feed-card__author:hover { color: #0B1F33; }
.feed-card__subject-thumb {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}
.feed-card__subject-img {
    height: 25px;
    width: auto;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    object-fit: cover;
    display: block;
}
.feed-card__subject-img--placeholder {
    height: 25px;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    background: #e4ecf4;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feed-card__boat-name {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
    flex: 1;
    min-width: 0;
}
.feed-card__boat-name:hover { color: #0B1F33; }

.feed-card__read-more {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: #0B1F33;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.feed-card__read-more:hover { color: #1a3a5c; }

.feed-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    margin-top: auto;
    flex-wrap: nowrap;
    overflow: hidden;
}
.feed-card__stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.feed-card__draft-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #c2410c;
    background: #fff7ed;
    border-radius: 6px;
    padding: 2px 8px;
    pointer-events: none;
}
.feed-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #9ca3af;
}
.feed-card__time {
    font-size: 12px;
    color: #9ca3af;
}
.feed-card__category {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px 8px;
}

/* ── Load more ──────────────────────────────────────────── */
.feed-more-wrap {
    display: flex;
    justify-content: center;
    margin: 8px 0 32px;
}
.feed-more-btn {
    padding: 10px 32px;
    background: #e4ecf4;
    border: 1.5px solid #c8d9ea;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.feed-more-btn:hover { background: #d5e3f0; border-color: #a8c4dc; }
.feed-more-btn:disabled { opacity: 0.6; cursor: default; }
