.community-page #main_content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

.community-hero {
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.community-title {
    font-family: var(--font-display);
    font-size: clamp(38px, 7vw, 60px);
    line-height: 0.95;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0;
}

.community-subtitle {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--muted);
    margin: 8px 0 0;
}

.community-composer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 28px;
}

.community-composer-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.community-composer-name {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.community-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--pink), var(--sage));
    color: var(--panel);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.community-avatar-link:hover {
    filter: brightness(1.12);
}

.community-chip {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--panel);
    background: var(--sage);
    border-radius: 999px;
    padding: 2px 8px;
}

.community-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    min-height: 84px;
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 12px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
}

.community-textarea:focus {
    outline: none;
    border-color: var(--pink);
}

.community-textarea::placeholder {
    color: var(--muted);
}

.community-composer-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.community-limit {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
}

.community-post-btn {
    background: var(--pink);
    color: var(--ink);
    border: none;
    border-radius: 999px;
    padding: 9px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: filter 0.15s;
}

.community-post-btn:hover {
    filter: brightness(1.1);
}

.community-error {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--pink);
    margin: 10px 0 0;
}

.community-feed {
    list-style: none;
    margin: 0;
    padding: 0;
}

.community-item {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.community-body {
    min-width: 0;
    flex: 1;
}

.community-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--font-body);
    font-size: 13px;
}

.community-user {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.community-user:hover {
    color: var(--sage);
}

.community-action,
.community-time {
    color: var(--muted);
}

.community-time::before {
    content: "·";
    margin-right: 8px;
}

.community-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.community-card {
    display: flex;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.15s;
}

.community-card:hover {
    border-color: var(--line-strong);
}

.community-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 168px;
    aspect-ratio: 16 / 9;
    background: var(--panel);
}

.community-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.community-duration {
    position: absolute;
    right: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, 0.78);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    padding: 1px 5px;
}

.community-card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 14px 10px 0;
}

.community-card-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.community-card-stats {
    display: flex;
    gap: 14px;
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--muted);
}

.community-photo {
    display: block;
    width: 220px;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
}

.community-photo-wide {
    width: 320px;
    aspect-ratio: 4 / 3;
}

.community-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}

.community-photo:hover img {
    transform: scale(1.03);
}

.community-empty {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--muted);
    text-align: center;
    padding: 48px 0;
}

@media (max-width: 560px) {
    .community-card {
        flex-direction: column;
        gap: 0;
    }

    .community-thumb {
        width: 100%;
    }

    .community-card-info {
        padding: 12px 14px 14px;
    }

    .community-photo,
    .community-photo-wide {
        width: 100%;
    }
}
