.section-page {
    padding-top: 24px;
    padding-bottom: 28px;
}

.section-hero {
    background: rgba(253, 243, 231, 0.9);
    border: 1px solid #dcc9ba;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.section-hero h1 {
    margin: 0 0 6px;
    color: #6b4f4f;
}

.section-hero p {
    margin: 0;
    color: #8b7355;
}

.section-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.section-card {
    background: rgba(247, 232, 208, 0.92);
    border: 1px solid #dcc9ba;
    border-radius: 10px;
    padding: 14px;
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.section-card p,
.section-card li {
    color: #4a3f35;
}

.section-card ul {
    margin: 0;
    padding-left: 18px;
}

[data-theme="dark"] .section-hero,
[data-theme="dark"] .section-card {
    background: #2a2a2a;
    border-color: #444;
}

[data-theme="dark"] .section-hero h1,
[data-theme="dark"] .section-hero p,
[data-theme="dark"] .section-card h2,
[data-theme="dark"] .section-card p,
[data-theme="dark"] .section-card li {
    color: antiquewhite;
}

.section-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-post-item {
    border: 1px solid #e6d7c9;
    border-radius: 10px;
    background: #fffaf4;
    padding: 14px;
}

.section-post-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dcc9ba;
    margin-bottom: 10px;
    display: block;
}

.section-post-cover.is-video {
    background: #1f1f1f;
}

.section-post-item.is-clickable {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.section-post-item.is-clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #c9b39d;
}

.section-post-item.is-clickable:focus-visible {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

.section-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.86rem;
    color: #8b7355;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #dcc9ba;
    background: #f7e8d0;
    color: #6b4f4f;
    font-weight: bold;
}

.section-post-item h3 {
    margin: 0 0 8px;
    color: #6b4f4f;
    font-size: 1.05em;
}

.section-post-item p {
    margin: 0 0 8px;
    color: #4a3f35;
}

.section-post-footer {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-post-submeta {
    margin: 0 0 8px;
    color: #8b7355;
    font-size: 0.9rem;
}

.section-post-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.section-media-btn {
    appearance: none;
    border: none;
    background: none;
    color: #8b4513;
    text-decoration: none;
    font-weight: bold;
    padding: 0;
    font-size: 1em;
    cursor: pointer;
}

.section-media-btn:hover {
    color: #a0522d;
    text-decoration: underline;
}

.section-author-link {
    color: #8b4513;
    text-decoration: none;
    font-weight: 600;
}

.section-author-link:hover {
    text-decoration: underline;
}

.section-media-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}

.section-media-preview-modal.hidden {
    display: none;
}

.section-media-preview-panel {
    width: min(900px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #fffaf4;
    border: 1px solid #dcc9ba;
    border-radius: 12px;
    padding: 14px;
}

.section-media-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.section-media-preview-header h3 {
    margin: 0;
    color: #6b4f4f;
}

.section-media-close-btn {
    border: 1px solid var(--btn-secondary-border);
    border-radius: var(--btn-radius);
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    cursor: pointer;
    padding: 5px 12px;
    font-weight: var(--btn-font-weight);
}

.section-media-preview-body {
    min-height: 100px;
}

.section-preview-image,
.section-preview-video {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    display: block;
}

.section-preview-audio {
    width: 100%;
}

.section-preview-fallback {
    color: #6b4f4f;
    margin-bottom: 8px;
}

.section-preview-open-link {
    color: #8b4513;
    font-weight: 600;
}
.section-preview-open-link:hover {
    text-decoration: underline;
}

.section-loading,
.section-empty,
.section-error {
    border: 1px dashed #c5a992;
    border-radius: 10px;
    padding: 14px;
    color: #6b4f4f;
    background: rgba(255, 255, 255, 0.58);
}

[data-theme="dark"] .section-post-item {
    background: #2a2a2a;
    border-color: #454545;
}

[data-theme="dark"] .section-post-meta,
[data-theme="dark"] .section-post-submeta,
[data-theme="dark"] .section-post-item h3,
[data-theme="dark"] .section-loading,
[data-theme="dark"] .section-empty,
[data-theme="dark"] .section-error {
    color: antiquewhite;
}

[data-theme="dark"] .section-tag {
    background: rgba(255, 250, 235, 0.12);
    color: antiquewhite;
}

[data-theme="dark"] .section-media-btn {
    color: antiquewhite;
}

[data-theme="dark"] .section-media-btn:hover {
    color: #d4a574;
}

[data-theme="dark"] .section-author-link {
    color: antiquewhite;
}

[data-theme="dark"] .section-post-item.is-clickable:hover {
    border-color: #5a546d;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .section-media-preview-panel {
    background: #2a2a2a;
    border-color: #454545;
}

[data-theme="dark"] .section-media-preview-header h3,
[data-theme="dark"] .section-preview-fallback,
[data-theme="dark"] .section-preview-open-link {
    color: antiquewhite;
}

[data-theme="dark"] .section-media-close-btn {
    background: #1f1f1f;
    border-color: #444;
    color: antiquewhite;
}