.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #060513;
}
.profile-banner {
  height: 240px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.avatar-container {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #1e1e2f;
  transition: transform 0.3s ease;
}
.avatar-image:hover {
  transform: scale(1.05);
}
.profile-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  margin-top: -80px;
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
  padding-bottom: 60px;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.profile-avatar-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-nameblock,
.profile-name-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}
.profile-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .profile-name-row {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .profile-name {
    font-size: 1.3rem;
  }
}
.profile-username,
.profile-displayname {
  font-size: 1.1rem;
  color: #b0b0b0;
  font-weight: 500;
  margin-top: 0.2rem;
  line-height: 1.2;
}
.user-badge {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  transform: translateY(2px);
}
.profile-stats-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.profile-stats {
  overflow: hidden;
  width: 360px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #d1d5db;
  animation: fadeIn 0.8s ease-out;
  background-color: #111827;
  border-radius: 20px;
  height: 75px;
}
.stat-item {
  all: unset;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.5rem 0;
  position: relative;
  font-size: 0.95rem;
}
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background-color: #2f3b54;
}
.stat-value {
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}
.stat-label {
  font-size: 0.85rem;
  color: #9ca3af;
}
.profile-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  animation: fadeIn 1.4s ease-out;
  margin-left: 0.75rem;
  margin-top: 1rem;
}
.follow-button,
.support-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
}
.follow-button {
  background-color: #ef4444;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.follow-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.follow-button:hover {
  background-color: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}
.follow-button:hover::before {
  width: 300%;
  height: 300%;
}
.follow-button.followed {
  background-color: #333;
  color: #fff;
}
.follow-button.followed .button-icon {
  stroke: #fff;
}
.support-button {
  background-color: transparent;
  color: #fff;
  border: 1px solid #ef4444;
}
.support-button:hover {
  background-color: rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}
.message-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: #ef4444;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.message-button:hover {
  background-color: #f87171;
  transform: translateY(-2px);
}
.message-button .button-icon {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  color: #ffffff;
}
.button-icon {
  width: 1rem;
  height: 1rem;
}
.profile-nav-link {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.profile-nav-link.active {
  font-weight: bold;
  border-bottom-color: #ef4444;
  color: #ef4444;
}
.profile-nav-link:hover {
  color: #e5e7eb;
}
.profile-navigation {
  display: flex;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
  animation: fadeIn 1.8s ease-out;
}
.profile-navigation::-webkit-scrollbar {
  display: none;
}
.profile-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.profile-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.profile-section {
  background-color: #111827;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-out;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #e5e7eb;
}
.bio-textarea {
  width: 100%;
  padding: 0.5rem;
  background: #111827;
  color: #fff;
  border: 1px solid #374151;
  border-radius: 0.375rem;
  resize: vertical;
}
.bio-editor-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}
.bio-editor-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
}
.bio-editor-buttons button:first-child {
  background: transparent;
  color: #9ca3af;
}
.bio-editor-buttons button:last-child {
  background: #ef4444;
  color: white;
}
.bio-char-count {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}
.edit-avatar-button {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #ef4444;
  border: 2px solid #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.edit-avatar-button:hover {
  background-color: #dc2626;
  transform: scale(1.1);
}
.edit-banner-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0.375rem;
  background-color: #1f2937;
  border: 1px solid #374151;
  color: rgb(226, 216, 216);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 999;
  pointer-events: auto;
}
.edit-banner-button:hover {
  background-color: #374151;
}
.edit-icon {
  width: 16px;
  height: 16px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .profile-banner {
    height: 180px;
  }
  .profile-name {
    font-size: 1.5rem;
  }
  .streams-grid {
    grid-template-columns: 1fr;
  }
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
  .edit-banner-button span,
  .edit-profile-button span {
    display: none;
  }
  .edit-profile-button {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
  }
}
