.page-view .page-cover {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #e5e7eb;
}

.page-view .page-cover img {
    width: 100%;
    height: clamp(220px, 30vw, 340px);
    object-fit: cover;
    display: block;
}

.page-cover-placeholder {
    width: 100%;
    height: clamp(220px, 30vw, 340px);
    background: linear-gradient(120deg, #d1d5db, #e5e7eb);
}

.page-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-top: -48px;
    border: 4px solid #fff;
    overflow: hidden;
}

.page-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero-info h2 {
    margin-bottom: 0.25rem;
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.page-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-search input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    min-width: 180px;
}

.page-more {
    position: relative;
}

.page-more summary {
    list-style: none;
    cursor: pointer;
}

.page-more summary::-webkit-details-marker {
    display: none;
}

.page-more-menu {
    position: absolute;
    right: 0;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    min-width: 160px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    z-index: 10;
}

.page-more-menu a {
    display: block;
    padding: 0.4rem 0;
    color: inherit;
}

.page-body {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
}

.page-tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.page-tabs a {
    color: #6b7280;
    font-weight: 600;
}

.page-tabs a.is-active {
    color: #111827;
    border-bottom: 2px solid #111827;
    padding-bottom: 0.4rem;
}

.page-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.page-posts-actions {
    display: flex;
    gap: 0.5rem;
}

.page-composer {
    margin-bottom: 1.25rem;
}

.page-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.page-post {
    margin-bottom: 1rem;
}

.page-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.page-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.page-post-media img {
    width: 100%;
    border-radius: 0.75rem;
    margin-top: 0.75rem;
    object-fit: cover;
}

.page-post-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.page-post-comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.page-post-comment-form input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.page-post-comment {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.35rem 0;
}

.page-sidebar .page-card {
    margin-bottom: 1rem;
}

.page-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.page-photos-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (max-width: 720px) {
    .page-hero {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .page-hero-actions {
        justify-content: flex-start;
    }

    .page-body {
        grid-template-columns: 1fr;
    }
}
