.community-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.community-hero {
    padding: 28px;
}

.community-hero h1 {
    margin: 0 0 10px;
    color: #f4e7df;
    font-size: 34px;
}

.community-hero p {
    margin: 0;
    color: rgba(230, 210, 200, 0.7);
}

.community-search {
    padding: 18px;
}

.community-search form {
    display: flex;
    gap: 12px;
}

.community-search input {
    width: 100%;
    padding: 13px 15px;
    color: #f2e8df;
    background: rgba(5, 5, 5, 0.75);
    border: 1px solid rgba(170, 0, 0, 0.42);
    outline: none;
}

.community-search input:focus {
    border-color: rgba(255, 40, 40, 0.75);
    box-shadow: 0 0 18px rgba(180, 0, 0, 0.22);
}

.community-search button {
    padding: 0 20px;
    color: #f2e8df;
    background: linear-gradient(135deg, rgba(120, 0, 0, 0.9), rgba(35, 0, 0, 0.95));
    border: 1px solid rgba(255, 40, 40, 0.45);
    cursor: pointer;
}

.community-users {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.community-user-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    transition: 0.2s ease;
}

.community-user-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 40, 40, 0.55);
    box-shadow: 0 0 24px rgba(150, 0, 0, 0.18);
}

.community-avatar {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 40, 40, 0.45);
    box-shadow: 0 0 18px rgba(150, 0, 0, 0.25);
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #080808;
}

.community-user-info {
    width: 100%;
    min-width: 0;
}

.community-username {
    display: inline-block;
    margin-bottom: 10px;
    color: #f4e7df;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.community-username:hover {
    color: #ff4a4a;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 10px;
}

.community-stats div {
    padding: 10px 12px;
    background: rgba(5, 5, 5, 0.52);
    border: 1px solid rgba(160, 0, 0, 0.25);
}

.community-stats span {
    display: block;
    margin-bottom: 4px;
    color: rgba(220, 190, 180, 0.55);
    font-size: 12px;
}

.community-stats b {
    color: #f2e8df;
    font-size: 14px;
}

.community-stats b.good {
    color: #ff5b5b;
}

.community-stats b.bad {
    color: #9b9b9b;
}

.empty-panel {
    padding: 22px;
    color: rgba(230, 210, 200, 0.68);
}

@media (max-width: 900px) {
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .community-search form {
        flex-direction: column;
    }

    .community-user-card {
        align-items: flex-start;
    }

    .community-stats {
        grid-template-columns: 1fr;
    }
}

.community-name-line {
    display: flex;
    align-items: center;
    gap: 10px;
}

