.simple-page {
  display: grid;
  grid-template-areas: "nav input";
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  max-width: 850px;
  margin: 20px auto;
}
.profile-page {
  width: 100%;
  margin: 0;
}
.profile-wrap {
  width: 100%;
}

.profile-hero-card, .profile-feed-card {
  background: #171717;
  border-bottom: 1px solid #2f3336;
}

.profile-hero-card {
  padding: 2rem 1.5rem 1.5rem;
}

.profile-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.profile-hero-copy h1 {
  margin: 0 0 8px;
  font-size: 4rem;
  font-weight: 600;
}

.profile-hero-copy p {
  margin: 0 0 18px;
}

.profile-hero-copy #profileUsername {
  color: #d7d9db;
  font-size: 1.05rem;
}

.profile-hero-copy #profileSummary {
  color: #c2c5c9;
  font-size: 1rem;
  max-width: 42rem;
}

.profile-hero-copy #followButton {
  margin-top: 0.35rem;
}

.profile-avatar-large {
  width: 164px;
  height: 164px;
  flex: 0 0 164px;
  border-radius: 50%;
  overflow: hidden;
  background: #d9dde1;
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.following-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b4b7ba;
  font-size: 1.05rem;
}

.following-preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cc0000;
  box-shadow: 0 0 0 4px rgba(204, 0, 0, 0.15);
}

.profile-feed-card {
  overflow: hidden;
}

.profile-feed-header {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #2f3336;
  background: rgba(18, 18, 18, 0.78);
}

#followingList {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

#followingList li {
  margin-bottom: 0;
}

.sidebar-following-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.sidebar-following-header h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.sidebar-following-link {
  color: #e7e9ea;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.profile-following-panel {
  margin-top: 0.35rem;
  padding: 0.35rem 0.7rem 0;
}

.profile-suggested-panel {
  margin-top: 1rem;
  padding: 1rem 0.7rem 0;
  border-top: 1px solid #2f3336;
}

.sidebar-following-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #2f3336;
}

.sidebar-following-list li:last-child {
  border-bottom: none;
}

.sidebar-following-avatar-link {
  display: block;
}

.sidebar-following-avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #d9dde1;
  padding: 0.12rem;
}

.sidebar-following-copy {
  min-width: 0;
}

.sidebar-following-name {
  display: block;
  color: #e7e9ea;
  font-weight: 700;
  line-height: 1.15;
  font-size: 0.95rem;
}

.sidebar-following-subtitle {
  color: #8f959b;
  font-size: 0.8rem;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.sidebar-following-action {
  color: #7a93ff;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.sidebar-follow-btn {
  border: 1px solid #cc0000;
  padding: 0.5rem 0.75rem;
  background: #cc0000;
  color: #fff;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 5.75rem;
  white-space: nowrap;
}

.sidebar-follow-btn:hover {
  background: #e00000;
  border-color: #e00000;
}

.sidebar-following-avatar-link:hover,
.sidebar-following-name:hover,
.sidebar-following-action:hover {
  text-decoration: none;
}
