.profile-page {
  padding: 0 20px 100px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
}

.profile-header__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-header__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-header__avatar-edit {
  background: none;
  border: none;
  color: var(--color-text-faint);
  font-size: 11px;
  font-weight: 600;
  padding: 0;
}

.profile-header__avatar-edit:hover {
  color: var(--color-text);
}

.profile-header__avatar-edit:disabled {
  opacity: 0.6;
  cursor: default;
}

.profile-header__name {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 4px;
}

.profile-header__email {
  color: var(--color-text-faint);
  font-size: 13px;
  margin: 0;
}

.profile-header__avatar-error {
  color: var(--color-danger);
  font-size: 12px;
  margin: 6px 0 0;
}

.profile-header__public-link {
  display: inline-block;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.profile-header__public-link:hover {
  color: var(--color-accent-hover);
}

.profile-bio {
  padding-bottom: 20px;
}

.profile-bio__country {
  color: var(--color-text-dim);
  font-size: 13px;
  margin: 0 0 6px;
}

.profile-bio__text {
  color: var(--color-text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 8px;
  white-space: pre-wrap;
}

.profile-bio-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
  max-width: 420px;
}

.profile-bio-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dim);
}

.profile-bio-form__field select,
.profile-bio-form__field textarea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--color-text);
  font-size: 14px;
  font-family: inherit;
  font-weight: 400;
  resize: vertical;
}

.profile-bio-form__field select:focus,
.profile-bio-form__field textarea:focus {
  border-color: var(--color-accent);
}

.profile-bio-form__error {
  color: var(--color-danger);
  font-size: 13px;
  margin: 0;
}

.profile-bio-form__actions {
  display: flex;
  gap: 10px;
}

.profile-bio-form__actions button[type="submit"] {
  background: var(--color-accent);
  color: var(--color-text);
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}

.profile-bio-form__actions button[type="submit"]:hover {
  background: var(--color-accent-hover);
}

.profile-bio-form__actions button[type="button"] {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-dim);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
}

.profile-bio-form__actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.profile-header__actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.profile-header__logout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-dim);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}

.profile-header__logout:hover {
  color: var(--color-text);
  border-color: var(--color-accent-soft);
}

.profile-header__manage-link {
  text-align: center;
  background: none;
  border: 1px solid transparent;
  color: var(--color-text-faint);
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
}

.profile-header__manage-link:hover {
  color: var(--color-text);
}

@media (max-width: 560px) {
  .profile-header {
    flex-wrap: wrap;
  }

  .profile-header__actions {
    margin-left: 0;
  }
}

.my-videos-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-verify-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-text-dim);
}

.profile-verify-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.profile-verify-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.profile-verify-banner__actions button {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-verify-banner__actions button:hover {
  border-color: var(--color-accent-soft);
}

.profile-verify-banner__actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.profile-verify-banner__error {
  width: 100%;
  color: var(--color-danger);
  font-size: 12px;
  margin: 0;
}

.profile-danger-zone {
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.profile-danger-zone__hint {
  color: var(--color-text-dim);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.profile-danger-zone__error {
  color: var(--color-danger);
  font-size: 13px;
  margin: 0 0 10px;
}

.profile-danger-zone__button {
  background: none;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.profile-danger-zone__button:hover {
  background: var(--color-danger);
  color: #fff;
}

.profile-danger-zone__button:disabled {
  opacity: 0.6;
  cursor: default;
}
