.profile-subpage-head {
    margin: 4px 0 18px;
}

.profile-subpage-head h1 {
    margin: 10px 0 6px;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -.04em;
}

.profile-subpage-head p {
    margin: 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.profile-back-link .icon {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.profile-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.profile-subnav-link {
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #151d33;
    color: #c3cde3;
    font-size: 12px;
    font-weight: 700;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.profile-subnav-link:hover {
    background: #1d2845;
    border-color: #4c5f8c;
    color: #fff;
}

.profile-subnav-link.active {
    border-color: color-mix(in srgb, var(--accent) 65%, #7381aa);
    background: color-mix(in srgb, var(--accent) 22%, #151d33);
    color: #fff;
}

.profile-subpage-meta {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
}

.profile-subpage-meta strong {
    color: var(--text);
}

.profile-subpage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.profile-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.profile-data-table th,
.profile-data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.profile-data-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-data-table tr:hover td {
    background: #151d33;
}

.profile-data-title {
    display: block;
    color: var(--text);
    font-weight: 700;
}

.profile-data-title:hover {
    color: var(--accent-soft);
}

.profile-data-table small {
    color: var(--muted);
    font-size: 11px;
}

.profile-rating-list {
    display: grid;
    gap: 9px;
}

.profile-rating-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #111a2ecc;
    transition: border-color .16s ease, transform .16s ease;
}

.profile-rating-row:hover {
    border-color: #4c5f8c;
    transform: translateX(3px);
}

.profile-rating-row img {
    width: 42px;
    height: 58px;
    border-radius: 7px;
    object-fit: cover;
    background: #1a2540;
}

.profile-rating-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-rating-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-rating-copy small {
    color: var(--muted);
    font-size: 11px;
}

.profile-rating-value {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid #f7c56c55;
    border-radius: 999px;
    background: #f7c56c17;
    color: #f7c56c;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-comments-list {
    margin-top: 4px;
}

.comment-target {
    margin: 2px 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.comment-target a {
    color: var(--accent-soft);
}

.comment-target a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .profile-data-table th:nth-child(n+3),
    .profile-data-table td:nth-child(n+3) {
        display: none;
    }

    .profile-subnav {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile-subnav::-webkit-scrollbar {
        display: none;
    }

    .profile-subnav-link {
        flex: none;
    }
}
